--- a/xpp/hexfile.h
+++ b/xpp/hexfile.h
@@ -26,6 +26,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdint.h>
+#include <sys/cdefs.h>
 #include <sys/param.h>
 #include <syslog.h>
 #define	PACKED	__attribute__((packed))
