Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc 4.4.7 (hello RHEL 6) complains about redefinition of typedefs, as in: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DSYSCONFDIR='"/usr/local/etc"' -g -O2 -g -O2 -MT nbd_client-buffer.o -MD -MP -MF .deps/nbd_client-buffer.Tpo -c -o nbd_client-buffer.o `test -f 'buffer.c' || echo './'`buffer.c buffer.c:39: error: redefinition of typedef ‘buffer_t’ buffer.h:31: note: previous declaration of ‘buffer_t’ was here The .c file only has to declare the struct being typedef'd, not repeat the typedef declaration. Signed-off-by: Eric Blake <[email protected]> Signed-off-by: Wouter Verhelst <[email protected]>
- Loading branch information