Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a51ea
)
Don't use __attribute__((__unused__)) on HP-UX w/o gcc.
author
Wayne Davison
<wayned@samba.org>
Sun, 25 Apr 2004 16:10:09 +0000
(16:10 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 25 Apr 2004 16:10:09 +0000
(16:10 +0000)
popt/system.h
patch
|
blob
|
blame
|
history
diff --git
a/popt/system.h
b/popt/system.h
index
eac5fb1
..
b147af7
100644
(file)
--- a/
popt/system.h
+++ b/
popt/system.h
@@
-69,6
+69,10
@@
char *alloca ();
#define xstrdup(_str) strdup(_str)
#endif /* HAVE_MCHECK_H && defined(__GNUC__) */
+#if defined(__GNUC__) || !(defined(__hpux) || defined(_hpux) || defined (hpux))
#define UNUSED(x) x __attribute__((__unused__))
+#else
+#define UNUSED(x) x
+#endif
#include "popt.h"