g++ on NetBSD needs to have environ declared as well.
Steve Peters [Thu, 5 Apr 2007 16:32:19 +0000 (16:32 +0000)]
p4raw-id: //depot/perl@30848

perl.h

diff --git a/perl.h b/perl.h
index 0cff283..d7d4f64 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -1201,7 +1201,7 @@ EXTERN_C char **environ;
 #endif
 
 #if defined(__cplusplus)
-#  if defined(__OpenBSD__) || defined(__FreeBSD__)
+#  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
 EXTERN_C char **environ;
 #  elif defined(__CYGWIN__)
 EXTERN_C char *crypt(const char *, const char *);