www/publicfile: fix build on 15-CURRENT

"extern int errno;" no longer works to get errno.  Include <errno.h>
instead to fix the build.

MFH:		2024Q4
This commit is contained in:
Robert Clausecker 2024-10-25 13:22:30 +02:00
parent 64a3cbd5cf
commit ba183df93e
5 changed files with 26 additions and 15 deletions

View file

@ -1,6 +1,6 @@
--- Makefile.orig 1999-11-09 08:23:46.000000000 +0100
+++ Makefile 2014-08-21 12:29:41.000000000 +0200
@@ -32,6 +32,14 @@
--- Makefile.orig 1999-11-09 07:23:46 UTC
+++ Makefile
@@ -32,6 +32,14 @@ compile auto_home.c
compile auto_home.c
./compile auto_home.c
@ -15,7 +15,7 @@
byte_chr.o: \
compile byte_chr.c byte.h
./compile byte_chr.c
@@ -231,7 +239,7 @@
@@ -231,7 +239,7 @@ hier.o: \
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
hier.o: \
@ -24,7 +24,7 @@
./compile hier.c
httpd: \
@@ -257,9 +265,9 @@
@@ -257,9 +265,9 @@ install: \
./compile httpdate.c
install: \
@ -36,7 +36,7 @@
open.a error.a str.a
install.o: \
@@ -268,8 +276,8 @@
@@ -268,8 +276,8 @@ instcheck: \
./compile install.c
instcheck: \

View file

@ -1,5 +1,5 @@
--- /dev/null 2014-08-21 12:22:00.000000000 +0200
+++ auto_home_stage.h 2014-08-21 12:25:14.000000000 +0200
--- auto_home_stage.h.orig 2024-10-25 11:20:18 UTC
+++ auto_home_stage.h
@@ -0,0 +1,6 @@
+#ifndef AUTO_HOME_STAGE_H_
+#define AUTO_HOME_STAGE_H_

View file

@ -0,0 +1,11 @@
--- error.h.orig 2024-10-25 11:21:26 UTC
+++ error.h
@@ -1,7 +1,7 @@
#ifndef ERROR_H
#define ERROR_H
-extern int errno;
+#include <errno.h>
extern int error_intr;
extern int error_nomem;

View file

@ -1,6 +1,6 @@
--- fetch.c.orig 1999-11-08 23:23:46.000000000 -0800
+++ fetch.c 2014-01-29 15:19:43.000000000 -0800
@@ -82,7 +82,7 @@
--- fetch.c.orig 1999-11-09 07:23:46 UTC
+++ fetch.c
@@ -82,7 +82,7 @@ static void list(char *fn,int flaglong)
substdio_puts(&ss,"\r\n");
}
@ -9,7 +9,7 @@
{
DIR *dir;
direntry *d;
@@ -122,7 +122,7 @@
@@ -122,7 +122,7 @@ static int doit(char *fn,int fddata,int fdfile,int how
for (;;) {
r = read(fdfile,inbuf,sizeof inbuf);
if (r == -1) {

View file

@ -1,6 +1,6 @@
--- hier.c.orig Tue Apr 20 11:26:00 2004
+++ hier.c Tue Apr 20 11:26:06 2004
@@ -2,9 +2,9 @@
--- hier.c.orig 1999-11-09 07:23:46 UTC
+++ hier.c
@@ -2,9 +2,9 @@ void hier()
void hier()
{