diff src/s/sol2.h @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 4103f0995bd7
children 54cc21c15cbb
line wrap: on
line diff
--- a/src/s/sol2.h	Mon Aug 13 09:00:04 2007 +0200
+++ b/src/s/sol2.h	Mon Aug 13 09:02:59 2007 +0200
@@ -1,6 +1,5 @@
 /* Synched up with: FSF 19.31. */
 
-#define __EXTENSIONS__
 #include "usg5-4-2.h"		/* XEmacs change from 5-4 to 5-4-2 */
 
 #define SOLARIS2
@@ -41,17 +40,7 @@
 /* The standard Solaris library nsl has this function in it which is
    supposed to only be in the BSD compat stuff.  Yuck.  Of course,
    there isn't a prototype for it other than in /usr/ucbinclude. */
-int gethostname (char *, size_t);
-
-/* Get non-ANSI functions from ANSI header files in cc -Xc mode.
-   Sun has promised to fix setjmp.h */
-#if __STDC__ == 1
-#ifndef __GNUC__
-#define _POSIX_C_SOURCE 1
-#include <setjmp.h>
-#undef _POSIX_C_SOURCE
-#endif /* __GNUC__ */
-#endif /* __STDC__ */
+int gethostname (char *, int);
 
 /* XEmacs: Solaris include files miss this. */
 struct timeval;
@@ -60,7 +49,7 @@
 /* XEmacs addition: to this to avoid having problems when we later
    define INT_MAX etc. */
 #include <limits.h>
-#endif /* C_CODE */
+#endif
 
 /* XEmacs change -- removed flags to force K & R compilation */