added #if because rename() is also in POSIX

This commit is contained in:
eck 1990-09-11 10:26:42 +00:00
parent 1dd88ae8da
commit 74f3d91777

View file

@ -3,6 +3,7 @@
*/ */
/* $Header$ */ /* $Header$ */
#if !defined(_POSIX_SOURCE)
#include <stdio.h> #include <stdio.h>
int _link(const char *name1, const char *name2); int _link(const char *name1, const char *name2);
@ -13,3 +14,4 @@ rename(const char *old, const char *new) {
return remove(old); return remove(old);
else return -1; else return -1;
} }
#endif