You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ucspi-tcp/ucspi-tcp-0.88-el8.patch

70 lines
2.3 KiB
Diff

diff -Nur --no-dereference ucspi-tcp-0.88/chkshsgr.c ucspi-tcp-0.88.new/chkshsgr.c
--- ucspi-tcp-0.88/chkshsgr.c 2000-03-18 10:18:42.000000000 -0500
+++ ucspi-tcp-0.88.new/chkshsgr.c 2024-03-18 16:48:03.509000000 -0400
@@ -1,8 +1,12 @@
#include "exit.h"
+#include <sys/types.h>
+#include <stdlib.h>
+#include <grp.h>
+#include <unistd.h>
-main()
+main(int argc, char *argv[])
{
- short x[4];
+ gid_t x[4];
x[0] = x[1] = 0;
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
diff -Nur --no-dereference ucspi-tcp-0.88/conf-cc ucspi-tcp-0.88.new/conf-cc
--- ucspi-tcp-0.88/conf-cc 2000-03-18 10:18:42.000000000 -0500
+++ ucspi-tcp-0.88.new/conf-cc 2024-03-18 16:45:17.896000000 -0400
@@ -1,3 +1,3 @@
-gcc -O2
+${CC} ${CFLAGS}
This will be used to compile .c files.
diff -Nur --no-dereference ucspi-tcp-0.88/conf-ld ucspi-tcp-0.88.new/conf-ld
--- ucspi-tcp-0.88/conf-ld 2000-03-18 10:18:42.000000000 -0500
+++ ucspi-tcp-0.88.new/conf-ld 2024-03-18 16:45:42.251000000 -0400
@@ -1,3 +1,3 @@
-gcc -s
+${CC} ${LDFLAGS}
This will be used to link .o files into an executable.
diff -Nur --no-dereference ucspi-tcp-0.88/install.c ucspi-tcp-0.88.new/install.c
--- ucspi-tcp-0.88/install.c 2000-03-18 10:18:42.000000000 -0500
+++ ucspi-tcp-0.88.new/install.c 2024-03-18 17:10:46.118000000 -0400
@@ -4,6 +4,7 @@
#include "open.h"
#include "readwrite.h"
#include "exit.h"
+#include <sys/stat.h>
extern void hier();
diff -Nur --no-dereference ucspi-tcp-0.88/Makefile ucspi-tcp-0.88.new/Makefile
--- ucspi-tcp-0.88/Makefile 2000-03-18 10:18:42.000000000 -0500
+++ ucspi-tcp-0.88.new/Makefile 2024-03-18 16:43:21.840000000 -0400
@@ -328,7 +328,7 @@
hasshsgr.h: \
choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \
warn-shsgr
- ./chkshsgr || ( cat warn-shsgr; exit 1 )
+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
haswaitp.h: \
diff -Nur --no-dereference ucspi-tcp-0.88/x86cpuid.c ucspi-tcp-0.88.new/x86cpuid.c
--- ucspi-tcp-0.88/x86cpuid.c 2000-03-18 10:18:42.000000000 -0500
+++ ucspi-tcp-0.88.new/x86cpuid.c 2024-03-18 16:51:38.537000000 -0400
@@ -5,7 +5,7 @@
exit(1);
}
-main()
+int main(int argc, char *argv[])
{
unsigned long x[4];
unsigned long y[4];