summaryrefslogtreecommitdiff
path: root/sock.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-02-25 02:24:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-02-25 02:24:03 +0100
commited720fda5d515f1359fcd3242223e553d1216789 (patch)
treedf52110c250932724fe0fae65e9eeda96a710580 /sock.c
parentd2a660f534d98169f60d50706cbb2ec15fa13cf8 (diff)
downloadstrace-ed720fda5d515f1359fcd3242223e553d1216789.tar.gz
strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.bz2
strace-ed720fda5d515f1359fcd3242223e553d1216789.tar.xz
Automated removal of non-Linux code
This change is generated by running every source through the following command: unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'sock.c')
-rw-r--r--sock.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sock.c b/sock.c
index d3a510a..89fc1cc 100644
--- a/sock.c
+++ b/sock.c
@@ -29,13 +29,8 @@
#include "defs.h"
-#ifdef LINUX
#include <sys/socket.h>
#include <linux/sockios.h>
-#else
-#include <sys/socket.h>
-#include <sys/sockio.h>
-#endif
#include <arpa/inet.h>
#if defined (ALPHA) || defined(SH) || defined(SH64)
@@ -127,7 +122,6 @@ sock_ioctl(struct tcb *tcp, long code, long arg)
#endif
printnum(tcp, arg, ", %#d");
return 1;
-#ifdef LINUX
case SIOCGIFNAME:
case SIOCSIFNAME:
case SIOCGIFINDEX:
@@ -286,7 +280,6 @@ sock_ioctl(struct tcb *tcp, long code, long arg)
}
tprints("}");
return 1;
-#endif
default:
return 0;
}