diff options
author | jbj <devnull@localhost> | 1999-09-26 17:28:00 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-09-26 17:28:00 +0000 |
commit | bc0955ad3c26524eef366a9e66a889d38a05b12f (patch) | |
tree | ef02eedc5ce148670d49fc134a493cd592a7305d /system.h | |
parent | d6f997e62d7bce0f24623ba8acfe3280fd6caf82 (diff) | |
download | librpm-tizen-bc0955ad3c26524eef366a9e66a889d38a05b12f.tar.gz librpm-tizen-bc0955ad3c26524eef366a9e66a889d38a05b12f.tar.bz2 librpm-tizen-bc0955ad3c26524eef366a9e66a889d38a05b12f.zip |
Solaris compilation.
CVS patchset: 3332
CVS date: 1999/09/26 17:28:00
Diffstat (limited to 'system.h')
-rw-r--r-- | system.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -212,15 +212,16 @@ void *vmefail(void); #endif /* HAVE_MCHECK_H && defined(__GNUC__) */ /* Retrofit glibc __progname */ -char *__progname; #if defined __GLIBC__ && __GLIBC__ >= 2 #define setprogname(pn) #else +#define __progname program_name #define setprogname(pn) \ - { if ((__progname = strrchr(pn, '/')) __progname++; \ + { if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \ else __progname = pn; \ } #endif +char *__progname; #if HAVE_NETDB_H #ifndef __LCLINT__ |