uwrap: Fix build on OSX.
authorAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Nov 2013 08:43:06 +0000 (09:43 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Nov 2013 08:43:06 +0000 (09:43 +0100)
src/uid_wrapper.c

index 9c88c34da1adb1e621c13c8e0e111d9dc6a5087a..bcf9a7a2dcfb62a4b3736a04ea0b47163c08ded7 100644 (file)
@@ -874,6 +874,7 @@ static long int uwrap_syscall (long int sysno, va_list vp)
                                rc = uwrap_setresgid_thread(rgid, egid, -1);
                        }
                        break;
+#ifdef SYS_setresgid
                case SYS_setresgid:
 #ifdef HAVE_LINUX_32BIT_SYSCALLS
                case SYS_setresgid32:
@@ -886,6 +887,7 @@ static long int uwrap_syscall (long int sysno, va_list vp)
                                rc = uwrap_setresgid_thread(rgid, egid, sgid);
                        }
                        break;
+#endif /* SYS_setresgid */
 
                /* uid */
                case SYS_getuid:
@@ -925,6 +927,7 @@ static long int uwrap_syscall (long int sysno, va_list vp)
                                rc = uwrap_setresuid_thread(ruid, euid, -1);
                        }
                        break;
+#ifdef SYS_setresuid
                case SYS_setresuid:
 #ifdef HAVE_LINUX_32BIT_SYSCALLS
                case SYS_setresuid32:
@@ -937,6 +940,7 @@ static long int uwrap_syscall (long int sysno, va_list vp)
                                rc = uwrap_setresuid_thread(ruid, euid, suid);
                        }
                        break;
+#endif /* SYS_setresuid */
 
                /* groups */
                case SYS_setgroups: