This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4136a0f
)
C++ compilation fix by Steve Peters
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 5 Apr 2007 16:26:18 +0000
(16:26 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 5 Apr 2007 16:26:18 +0000
(16:26 +0000)
p4raw-id: //depot/perl@30847
perl.h
patch
|
blob
|
blame
|
history
diff --git
a/perl.h
b/perl.h
index
0571d3e
..
0cff283
100644
(file)
--- 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 */