summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-09-26 17:28:00 +0000
committerjbj <devnull@localhost>1999-09-26 17:28:00 +0000
commitbc0955ad3c26524eef366a9e66a889d38a05b12f (patch)
treeef02eedc5ce148670d49fc134a493cd592a7305d /system.h
parentd6f997e62d7bce0f24623ba8acfe3280fd6caf82 (diff)
downloadlibrpm-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/system.h b/system.h
index 39b7ecad3..1aa03ab5d 100644
--- a/system.h
+++ b/system.h
@@ -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__