SHA256
1
0
forked from pool/prctl
2024-05-09 08:01:22 +00:00
committed by Git OBS Bridge
parent 5d133335ff
commit f3c843ae36

26
prctl-gcc14.patch Normal file
View 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 */