opnsense-ports/converters/recode/files/patch-lib-error.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
404 B
C

--- lib/error.c.orig Thu Aug 3 03:21:13 2000
+++ lib/error.c Thu Apr 17 00:29:29 2003
@@ -80,7 +80,12 @@
/* The calling program should define program_name and set it to the
name of the executing program. */
+# ifdef __FreeBSD__
+extern char *__progname;
+# define program_name __progname
+# else
extern char *program_name;
+# endif
# ifdef HAVE_STRERROR_R
# define __strerror_r strerror_r