mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
errno must be accessed by a macro from errno.h. Due to the sheer number of instances use REINPLACE_CMD to replace most instances of "extern int errno;" with "#include <errno.h>". In a few places the errno decleration was a function-scope global where including a header didn't make sense patch those out (the files already included errno.h). This isn't the most elegant, but it's the least of the issues with this code. PR: 281787 Approved by: portmgr (build fix blanket), mikael
10 lines
214 B
C
10 lines
214 B
C
--- zotnet/mf/muinc.c.orig
|
|
+++ zotnet/mf/muinc.c
|
|
@@ -81,7 +81,6 @@
|
|
{
|
|
int count,
|
|
fd;
|
|
- extern int errno;
|
|
|
|
for (count = 2; count > 0; count--)
|
|
if ((fd = lkopen (file, 1)) == NOTOK)
|