summaryrefslogtreecommitdiff
path: root/misc/rpm/patches/patch-system.h
blob: 96d2abb26c655197387ca5d402b7ea4b07526a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-system.h,v 1.1 2013/09/13 12:41:32 ryoon Exp $

* NetBSD has setprogname(3).

--- system.h.orig	2013-01-30 15:33:12.000000000 +0000
+++ system.h
@@ -112,7 +112,7 @@ typedef	char * security_context_t;
 #define _free(_ptr) rfree((_ptr))
 
 /* Retrofit glibc __progname */
-#if defined __GLIBC__ && __GLIBC__ >= 2
+#if (defined __GLIBC__ && __GLIBC__ >= 2) || defined(__NetBSD__)
 #if __GLIBC_MINOR__ >= 1
 #define	__progname	__assert_program_name
 #endif