aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/rpm4/files/patch-system.h
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/rpm4/files/patch-system.h')
-rw-r--r--archivers/rpm4/files/patch-system.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/archivers/rpm4/files/patch-system.h b/archivers/rpm4/files/patch-system.h
index 7d119aaaa7ef..9f118675dc2b 100644
--- a/archivers/rpm4/files/patch-system.h
+++ b/archivers/rpm4/files/patch-system.h
@@ -1,4 +1,4 @@
---- system.h.orig 2014-06-30 08:47:14 UTC
+--- system.h.orig 2017-02-16 09:40:09 UTC
+++ system.h
@@ -41,6 +41,13 @@ char * stpncpy(char * dest, const char *
#define getenv(_s) __secure_getenv(_s)
@@ -14,3 +14,12 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#else
+@@ -87,7 +94,7 @@ char * stpncpy(char * dest, const char *
+ #define _free(_ptr) rfree((_ptr))
+
+ /* Retrofit glibc __progname */
+-#if defined __GLIBC__ && __GLIBC__ >= 2
++#if defined __GLIBC__ && __GLIBC__ >= 2 || defined(__FreeBSD__)
+ #if __GLIBC_MINOR__ >= 1
+ #define __progname __assert_program_name
+ #endif