]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Conditionalize bit types definition.
authorTed Lemon <source@isc.org>
Sun, 14 Nov 1999 00:07:28 +0000 (00:07 +0000)
committerTed Lemon <source@isc.org>
Sun, 14 Nov 1999 00:07:28 +0000 (00:07 +0000)
includes/cf/alphaosf.h

index 16c8fefcb2ec236d7caa2b1a9031f9d7527ea546..f7be713cc27f6a4a9176629ce5c7d13cabbb77bf 100644 (file)
  * http://www.isc.org for more information.
  */
 
-/* Define the basic integer types... */
-typedef char int8_t;
-typedef short int16_t;
-typedef int int32_t;
-
-typedef unsigned char u_int8_t;
-typedef unsigned short u_int16_t;
-typedef unsigned int u_int32_t;
-typedef unsigned long u_int64_t;
-
 #include <syslog.h>
 #include <sys/types.h>
 #include <string.h>
@@ -48,6 +38,18 @@ extern int h_errno;
 #include <net/if.h>
 #include <net/if_dl.h>
 
+/* Define the basic integer types... */
+#if !defined (__BIT_TYPES_DEFINED__)
+typedef char int8_t;
+typedef short int16_t;
+typedef int int32_t;
+
+typedef unsigned char u_int8_t;
+typedef unsigned short u_int16_t;
+typedef unsigned int u_int32_t;
+typedef unsigned long u_int64_t;
+#endif
+
 /* Varargs stuff... */
 #include <stdarg.h>
 #define VA_DOTDOTDOT ...