]> granicus.if.org Git - strace/blobdiff - ipc.c
Fix signed/unsigned problems
[strace] / ipc.c
diff --git a/ipc.c b/ipc.c
index f01a9a911419bfc6254fe2f5ff77d65c4a52fcce..06688f0a5133fc3f58ce668391808c14b71095a1 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -2,6 +2,7 @@
  * Copyright (c) 1993 Ulrich Pegelow <pegelow@moorea.uni-muenster.de>
  * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
  * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -31,7 +32,7 @@
 
 #include "defs.h"
 
-#if defined(LINUX) || defined(SUNOS4)
+#if defined(LINUX) || defined(SUNOS4) || defined(FREEBSD)
 
 #include <sys/ipc.h>
 #include <sys/sem.h>
@@ -97,8 +98,12 @@ static struct xlat shmctl_flags[] = {
        { SHM_STAT,     "SHM_STAT"      },
        { SHM_INFO,     "SHM_INFO"      },
 #endif /* LINUX */
+#ifdef SHM_LOCK        
        { SHM_LOCK,     "SHM_LOCK"      },
+#endif
+#ifdef SHM_UNLOCK      
        { SHM_UNLOCK,   "SHM_UNLOCK"    },
+#endif 
        { 0,            NULL            },
 };
 
@@ -351,4 +356,4 @@ struct tcb *tcp;
        return 0;
 }
 
-#endif /* defined(LINUX) || defined(SUNOS4) */
+#endif /* defined(LINUX) || defined(SUNOS4) || defined(FREEBSD) */