]> granicus.if.org Git - strace/blobdiff - ioctl.c
Fix off_t args on FreeBSD
[strace] / ioctl.c
diff --git a/ioctl.c b/ioctl.c
index 4e6a416be41e2815bce685bec414f797a0bd8bd7..ed2a32bcca4476e13e9084962e1dded7516dcc1f 100644 (file)
--- a/ioctl.c
+++ b/ioctl.c
@@ -2,6 +2,7 @@
  * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
  * 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
@@ -104,15 +105,22 @@ long code, arg;
 #ifdef LINUX
        case 0x89:
 #else /* !LINUX */
-       case 'r': case 's': case 'i': case 'p':
+       case 'r': case 's': case 'i':
+#ifndef FREEBSD                
+       case 'p':
+#endif         
 #endif /* !LINUX */
                return sock_ioctl(tcp, code, arg);
-#ifdef SVR4
+#ifdef USE_PROCFS
 #ifndef HAVE_MP_PROCFS
+#ifndef FREEBSD
        case 'q':
+#else
+       case 'p':
+#endif         
                return proc_ioctl(tcp, code, arg);
 #endif
-#endif /* SVR4 */
+#endif /* USE_PROCFS */
 #ifdef HAVE_SYS_STREAM_H
        case 'S':
                return stream_ioctl(tcp, code, arg);