compile on FreeBSD 7
This commit is contained in:
		
							parent
							
								
									0a1a1203f0
								
							
						
					
					
						commit
						c54ad52a99
					
				@ -1613,7 +1613,9 @@ JNIEXPORT jlong SIGAR_JNI(ResourceLimit_INFINITY)
 | 
				
			|||||||
#ifdef WIN32
 | 
					#ifdef WIN32
 | 
				
			||||||
    return 0x7fffffff;
 | 
					    return 0x7fffffff;
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
					#ifndef __FreeBSD__
 | 
				
			||||||
#include <sys/time.h>
 | 
					#include <sys/time.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include <sys/resource.h>
 | 
					#include <sys/resource.h>
 | 
				
			||||||
    return RLIM_INFINITY;
 | 
					    return RLIM_INFINITY;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
@ -1788,7 +1788,9 @@ static void get_fs_options(char *opts, int osize, long flags)
 | 
				
			|||||||
    if (flags & MNT_SYNCHRONOUS)    strncat(opts, ",sync", osize);
 | 
					    if (flags & MNT_SYNCHRONOUS)    strncat(opts, ",sync", osize);
 | 
				
			||||||
    if (flags & MNT_NOEXEC)         strncat(opts, ",noexec", osize);
 | 
					    if (flags & MNT_NOEXEC)         strncat(opts, ",noexec", osize);
 | 
				
			||||||
    if (flags & MNT_NOSUID)         strncat(opts, ",nosuid", osize);
 | 
					    if (flags & MNT_NOSUID)         strncat(opts, ",nosuid", osize);
 | 
				
			||||||
 | 
					#ifdef MNT_NODEV
 | 
				
			||||||
    if (flags & MNT_NODEV)          strncat(opts, ",nodev", osize);
 | 
					    if (flags & MNT_NODEV)          strncat(opts, ",nodev", osize);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#ifdef MNT_UNION
 | 
					#ifdef MNT_UNION
 | 
				
			||||||
    if (flags & MNT_UNION)          strncat(opts, ",union", osize);
 | 
					    if (flags & MNT_UNION)          strncat(opts, ",union", osize);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user