]> granicus.if.org Git - strace/commitdiff
Always compile sys_prctl parser
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Dec 2014 20:44:10 +0000 (20:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Dec 2014 23:32:59 +0000 (23:32 +0000)
Since sys_prctl is referenced by syscallent files unconditionally,
conditional compilation of sys_prctl depending on prctl availability is
pointless.

* prctl.c (unalignctl_string, sys_prctl): Compile unconditionally.

prctl.c

diff --git a/prctl.c b/prctl.c
index 71f26c042d8bd67beb459f47b29e443a3b26421b..234d11d10523f61f935fcf50cc973c833e623aec 100644 (file)
--- a/prctl.c
+++ b/prctl.c
@@ -1,6 +1,5 @@
 #include "defs.h"
 
-#ifdef HAVE_PRCTL
 #include <sys/prctl.h>
 
 #include "xlat/prctl_options.h"
@@ -111,7 +110,6 @@ sys_prctl(struct tcb *tcp)
        }
        return 0;
 }
-#endif /* HAVE_PRCTL */
 
 #if defined X86_64 || defined X32
 # include <asm/prctl.h>