diff --git a/src/global.h b/src/global.h
index de4bd7f4d85a16e08c29386e71b65733c29fe9f5..7287abee623063f6fd9aa89d99d764a9925f3887 100644
--- a/src/global.h
+++ b/src/global.h
@@ -12,6 +12,11 @@
 #  define _LARGEFILE64_SOURCE 1
 #endif
 
+/* HPUX needs these too... */
+#ifndef __STDC_EXT__
+#  define __STDC_EXT__
+#endif /* !__STDC_EXT__ */
+
 /*
  * Some structure forward declarations are needed.
  */