]> granicus.if.org Git - strace/commitdiff
fix compile on UW
authorJohn Hughes <john@Calva.COM>
Tue, 6 Mar 2001 09:25:46 +0000 (09:25 +0000)
committerJohn Hughes <john@Calva.COM>
Tue, 6 Mar 2001 09:25:46 +0000 (09:25 +0000)
net.c
signal.c

diff --git a/net.c b/net.c
index 85e0cc04c7afabb476b025e75067b284ab26a184..0c123e7f0450eeb1940485fb230662eb71ea8475 100644 (file)
--- a/net.c
+++ b/net.c
@@ -219,12 +219,18 @@ static struct xlat socktypes[] = {
        { 0,            NULL            },
 };
 static struct xlat socketlayers[] = {
+#if defined(SOL_IP)
        { SOL_IP,       "SOL_IP"        },
+#endif
 #if defined(SOL_ICMP)
        { SOL_ICMP,     "SOL_ICMP"      },
 #endif
+#if defined(SOL_TCP)
        { SOL_TCP,      "SOL_TCP"       },
+#endif
+#if defined(SOL_UDP)
        { SOL_UDP,      "SOL_UDP"       },
+#endif
 #if defined(SOL_IPV6)
        { SOL_IPV6,     "SOL_IPV6"      },
 #endif
index 1b807d886df7f839bfa56282056d735b7a63192c..9f5d18aebdaabeab5ec8904043d9fc6bb16d6175 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -595,8 +595,8 @@ sys_sigaction(tcp)
 struct tcb *tcp;
 {
        long addr;
-       sigset_t sigset;
 #ifdef LINUX
+       sigset_t sigset;
        struct old_sigaction sa;
 #else
        struct sigaction sa;