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$ */
 | 
			
		||||
 | 
			
		||||
#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…
	
	Add table
		
		Reference in a new issue