[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix to build on GNU and non-Linux-based variants
From: |
Robert Millan |
Subject: |
[PATCH] Fix to build on GNU and non-Linux-based variants |
Date: |
Fri, 18 Jul 2003 16:09:53 -0000 |
User-agent: |
Mutt/1.5.4i |
Hi!
setenv() has three arguments in all systems that use Glibc. The following
detection is wrong and breaks build on GNU and all variants of GNU that
use Glibc but don't use Linux as the kernel.
Patch follows:
diff -ur screen-3.9.15.old/misc.c screen-3.9.15/misc.c
--- screen-3.9.15.old/misc.c 2003-02-21 20:30:57.000000000 +0000
+++ screen-3.9.15/misc.c 2003-07-18 18:04:38.000000000 +0000
@@ -642,11 +642,11 @@
*/
# endif /* NEEDSETENV */
#else /* USESETENV */
-# if defined(linux) || defined(__convex__) || (BSD >= 199103)
+# if defined(__GLIBC__) || defined(__convex__) || (BSD >= 199103)
setenv(var, value, 1);
# else
setenv(var, value);
-# endif /* linux || convex || BSD >= 199103 */
+# endif /* __GLIBC__ || convex || BSD >= 199103 */
#endif /* USESETENV */
}
--
Robert Millan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Fix to build on GNU and non-Linux-based variants,
Robert Millan <=