djbdns/djbdns-1.05-el8.patch
2024-03-20 00:00:39 -04:00

30 lines
1010 B
Diff

diff -Nur --no-dereference djbdns-1.05.old/chkshsgr.c djbdns-1.05/chkshsgr.c
--- djbdns-1.05.old/chkshsgr.c 2001-02-11 16:11:45.000000000 -0500
+++ djbdns-1.05/chkshsgr.c 2024-03-19 23:34:19.933000000 -0400
@@ -1,8 +1,11 @@
+#include <sys/types.h>
+#include <stdlib.h>
+#include <grp.h>
#include "exit.h"
-int main()
+int 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 djbdns-1.05.old/Makefile djbdns-1.05/Makefile
--- djbdns-1.05.old/Makefile 2001-02-11 16:11:45.000000000 -0500
+++ djbdns-1.05/Makefile 2024-03-19 23:32:48.457000000 -0400
@@ -511,7 +511,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
hier.o: \