]> git.sur5r.net Git - openocd/commitdiff
Fix environ declaration for non-glibc systems
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 May 2009 06:22:49 +0000 (06:22 +0000)
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 May 2009 06:22:49 +0000 (06:22 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1599 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/jim.c

index ad2d6ec5cb8e534cad5c668e48d8d5e91ed677d9..32c146fa8192210cca50e61dfe1ee66e84b22e35 100644 (file)
@@ -11984,7 +11984,7 @@ static int Jim_EnvCoreCommand(Jim_Interp *interp, int argc,
 
     if (argc == 1) {
 
-#ifndef HAVE_UNISTD_H
+#if !defined(HAVE_UNISTD_H) || !defined(__GNU_LIBRARY__)
         extern char **environ;
 #endif