Message-Id: <
200608031959.k73JxbsC395856@kosh.hut.fi>
p4raw-id: //depot/perl@28655
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