compile on FreeBSD 7

This commit is contained in:
Doug MacEachern 2008-09-06 18:22:19 +00:00
parent 0a1a1203f0
commit c54ad52a99
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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