compile-snprintf-for-solaris25-20010430
authorMark Dapoz <md@dementia.org>
Mon, 30 Apr 2001 23:15:50 +0000 (23:15 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 30 Apr 2001 23:15:50 +0000 (23:15 +0000)
so this will still build for solaris 2.5.1, build our snprintf

src/util/snprintf.c

index 9c12c35..ef6c511 100644 (file)
@@ -1,14 +1,14 @@
 /* snprintf.c - Formatted, length-limited print to a string */
 
 #include <afs/param.h>
-#if defined(AFS_OSF20_ENV) && !defined(AFS_DUX50_ENV) || defined(AFS_AIX32_ENV)
+#if defined(AFS_OSF20_ENV) && !defined(AFS_DUX50_ENV) || defined(AFS_AIX32_ENV) || (defined(AFS_SUN55_ENV) && !defined(AFS_SUN56_ENV))
 #include <sys/types.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <netinet/in.h>
 #include <netdb.h>
-#if defined(AFS_AIX32_ENV)
+#if defined(AFS_AIX32_ENV) || defined(AFS_SUN55_ENV)
 #include <sys/socket.h>
 #endif