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:
parent
64a3cbd5cf
commit
ba183df93e
@ -1,6 +1,6 @@
|
|||||||
--- Makefile.orig 1999-11-09 08:23:46.000000000 +0100
|
--- Makefile.orig 1999-11-09 07:23:46 UTC
|
||||||
+++ Makefile 2014-08-21 12:29:41.000000000 +0200
|
+++ Makefile
|
||||||
@@ -32,6 +32,14 @@
|
@@ -32,6 +32,14 @@ compile auto_home.c
|
||||||
compile auto_home.c
|
compile auto_home.c
|
||||||
./compile auto_home.c
|
./compile auto_home.c
|
||||||
|
|
||||||
@ -15,7 +15,7 @@
|
|||||||
byte_chr.o: \
|
byte_chr.o: \
|
||||||
compile byte_chr.c byte.h
|
compile byte_chr.c byte.h
|
||||||
./compile byte_chr.c
|
./compile byte_chr.c
|
||||||
@@ -231,7 +239,7 @@
|
@@ -231,7 +239,7 @@ hier.o: \
|
||||||
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
|
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
|
||||||
|
|
||||||
hier.o: \
|
hier.o: \
|
||||||
@ -24,7 +24,7 @@
|
|||||||
./compile hier.c
|
./compile hier.c
|
||||||
|
|
||||||
httpd: \
|
httpd: \
|
||||||
@@ -257,9 +265,9 @@
|
@@ -257,9 +265,9 @@ install: \
|
||||||
./compile httpdate.c
|
./compile httpdate.c
|
||||||
|
|
||||||
install: \
|
install: \
|
||||||
@ -36,7 +36,7 @@
|
|||||||
open.a error.a str.a
|
open.a error.a str.a
|
||||||
|
|
||||||
install.o: \
|
install.o: \
|
||||||
@@ -268,8 +276,8 @@
|
@@ -268,8 +276,8 @@ instcheck: \
|
||||||
./compile install.c
|
./compile install.c
|
||||||
|
|
||||||
instcheck: \
|
instcheck: \
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--- /dev/null 2014-08-21 12:22:00.000000000 +0200
|
--- auto_home_stage.h.orig 2024-10-25 11:20:18 UTC
|
||||||
+++ auto_home_stage.h 2014-08-21 12:25:14.000000000 +0200
|
+++ auto_home_stage.h
|
||||||
@@ -0,0 +1,6 @@
|
@@ -0,0 +1,6 @@
|
||||||
+#ifndef AUTO_HOME_STAGE_H_
|
+#ifndef AUTO_HOME_STAGE_H_
|
||||||
+#define AUTO_HOME_STAGE_H_
|
+#define AUTO_HOME_STAGE_H_
|
||||||
|
|||||||
11
www/publicfile/files/patch-error.h
Normal file
11
www/publicfile/files/patch-error.h
Normal 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;
|
||||||
@ -1,6 +1,6 @@
|
|||||||
--- fetch.c.orig 1999-11-08 23:23:46.000000000 -0800
|
--- fetch.c.orig 1999-11-09 07:23:46 UTC
|
||||||
+++ fetch.c 2014-01-29 15:19:43.000000000 -0800
|
+++ fetch.c
|
||||||
@@ -82,7 +82,7 @@
|
@@ -82,7 +82,7 @@ static void list(char *fn,int flaglong)
|
||||||
substdio_puts(&ss,"\r\n");
|
substdio_puts(&ss,"\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
{
|
{
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
direntry *d;
|
direntry *d;
|
||||||
@@ -122,7 +122,7 @@
|
@@ -122,7 +122,7 @@ static int doit(char *fn,int fddata,int fdfile,int how
|
||||||
for (;;) {
|
for (;;) {
|
||||||
r = read(fdfile,inbuf,sizeof inbuf);
|
r = read(fdfile,inbuf,sizeof inbuf);
|
||||||
if (r == -1) {
|
if (r == -1) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
--- hier.c.orig Tue Apr 20 11:26:00 2004
|
--- hier.c.orig 1999-11-09 07:23:46 UTC
|
||||||
+++ hier.c Tue Apr 20 11:26:06 2004
|
+++ hier.c
|
||||||
@@ -2,9 +2,9 @@
|
@@ -2,9 +2,9 @@ void hier()
|
||||||
|
|
||||||
void hier()
|
void hier()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user