gcc -I/usr/local/ctdlsupport/include -Wall -Wcast-qual -Wcast-align -Wstrict-prototypes -pthread -I ./include/ -I/usr/local/ctdlsupport/include -I/usr/local/ctdlsupport/include -I. -I ./include/ -DHAVE_CONFIG_H -c citadel.c -o citadel.o In file included from citadel_ipc.h:12, from citadel.c:37: server.h:464: error: syntax error before "pthread_t" struct MaintenanceThreadHook { struct MaintenanceThreadHook *next; char *name; void *(*fcn_ptr) (void *arg); pthread_t MaintenanceThread_tid; }; extern struct MaintenanceThreadHook *MaintenanceThreadHookTable;