summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-04-05 16:26:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-04-05 16:26:18 +0000
commit83a6ff2e11375007a9cb2baae28363e5fd7c86fe (patch)
treee767f601f3970ab0e7d3d28505fa665d1e400303 /perl.h
parent4136a0f799bd94dcf9c5197e35db53e3c3c012b5 (diff)
downloadperl-83a6ff2e11375007a9cb2baae28363e5fd7c86fe.tar.gz
C++ compilation fix by Steve Peters
p4raw-id: //depot/perl@30847
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl.h b/perl.h
index 0571d3e1fa..0cff283f1f 100644
--- a/perl.h
+++ b/perl.h
@@ -1200,13 +1200,13 @@ EXTERN_C char *crypt(const char *, const char *);
EXTERN_C char **environ;
#endif
-#if defined(__OpenBSD__) && defined(__cplusplus)
+#if defined(__cplusplus)
+# if defined(__OpenBSD__) || defined(__FreeBSD__)
EXTERN_C char **environ;
-#endif
-
-#if defined(__CYGWIN__) && defined(__cplusplus)
+# elif defined(__CYGWIN__)
EXTERN_C char *crypt(const char *, const char *);
#endif
+#endif
#ifdef SETERRNO
# undef SETERRNO /* SOCKS might have defined this */