ports/japanese/mh/files/patch-sbr_ruserpass.c
Brooks Davis 993ca87fed japanese/mh: include errno.h for errno
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
2024-10-01 21:11:47 +01:00

10 lines
222 B
C

--- sbr/ruserpass.c.orig
+++ sbr/ruserpass.c
@@ -66,7 +66,6 @@
char myname[MAXHOSTNAMELEN], *mydomain;
int t, i, c, usedefault = 0;
struct stat stb;
- extern int errno;
hdir = getenv("HOME");
if (hdir == NULL)