added #if because rename() is also in POSIX
This commit is contained in:
parent
7f4e95884f
commit
6ad4c2c0a1
@ -3,6 +3,7 @@
|
||||
*/
|
||||
/* $Header$ */
|
||||
|
||||
#if !defined(_POSIX_SOURCE)
|
||||
#include <stdio.h>
|
||||
|
||||
int _link(const char *name1, const char *name2);
|
||||
@ -13,3 +14,4 @@ rename(const char *old, const char *new) {
|
||||
return remove(old);
|
||||
else return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user