added #if because rename() is also in POSIX
This commit is contained in:
parent
1dd88ae8da
commit
74f3d91777
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue