git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894d7c6
)
define ATTRIBUTE_UNUSED
author
Jim Meyering
<meyering@redhat.com>
Thu, 6 Aug 2009 13:25:03 +0000
(15:25 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Mon, 10 Aug 2009 09:53:33 +0000
(11:53 +0200)
* daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define.
daemon/daemon.h
patch
|
blob
|
history
diff --git
a/daemon/daemon.h
b/daemon/daemon.h
index
70a2351
..
a6bbb73
100644
(file)
--- a/
daemon/daemon.h
+++ b/
daemon/daemon.h
@@
-213,4
+213,14
@@
extern void reply (xdrproc_t xdrp, char *ret);
} \
while (0)
+#ifndef __attribute__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
+# define __attribute__(x) /* empty */
+# endif
+#endif
+
+#ifndef ATTRIBUTE_UNUSED
+# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+#endif
+
#endif /* GUESTFSD_DAEMON_H */