forked from pool/prctl
checkin
OBS-URL: https://build.opensuse.org/package/show/utilities/prctl?expand=0&rev=13
This commit is contained in:
26
prctl-gcc14.patch
Normal file
26
prctl-gcc14.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: prctl-1.6/configure
|
||||
===================================================================
|
||||
--- prctl-1.6.orig/configure
|
||||
+++ prctl-1.6/configure
|
||||
@@ -673,7 +673,7 @@ cat > conftest.$ac_ext << EOF
|
||||
#line 674 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
-main(){return(0);}
|
||||
+int main(){return(0);}
|
||||
EOF
|
||||
if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
ac_cv_prog_cc_works=yes
|
||||
Index: prctl-1.6/prctl.c
|
||||
===================================================================
|
||||
--- prctl-1.6.orig/prctl.c
|
||||
+++ prctl-1.6/prctl.c
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
-#include <linux/prctl.h>
|
||||
+#include <sys/prctl.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Version */
|
Reference in New Issue
Block a user