diff --git a/src/fd_control.c b/src/fd_control.c
index 68b0b7a0149fc33d4489f67aac077e1475d90a93..81b4d4de8c866f66593253fef657ae32ca44d8c6 100644
--- a/src/fd_control.c
+++ b/src/fd_control.c
@@ -9,12 +9,18 @@
 #include "error.h"
 #include "fdlib.h"
 
-RCSID("$Id: fd_control.c,v 1.18 1998/06/08 12:48:24 grubba Exp $");
+RCSID("$Id: fd_control.c,v 1.19 1998/07/04 01:06:39 grubba Exp $");
 
 #else
-#define _FILE_OFFSET_BITS 64
-#define _LARGEFILE_SOURCE 1
-#define _LARGEFILE64_SOURCE 1
+#ifndef _LARGEFILE_SOURCE
+#  define _FILE_OFFSET_BITS 64
+#  define _LARGEFILE_SOURCE 1
+#  define _LARGEFILE64_SOURCE 1
+#endif /* !_LARGERFILE_SOURCE */
+/* HPUX needs these too... */
+#ifndef __STDC_EXT__
+#  define __STDC_EXT__
+#endif /* !__STDC_EXT__ */
 #include <sys/types.h>
 #undef DEBUG
 #define fd_ioctl ioctl