summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 34ddf8c9a2..690bc9d381 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -197,7 +197,7 @@ void setservent(int);
void endservent(void);
#endif
-#if defined(__osf__) && !defined(_XOPEN_SOURCE_EXTENDED)
+#if defined(__osf__) && defined(__cplusplus) && !defined(_XOPEN_SOURCE_EXTENDED)
extern int readlink(const char *, char *, size_t);
extern int fchdir(int);
#endif