summaryrefslogtreecommitdiffstats
path: root/daemon/daemon.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-06 15:25:03 +0200
committerJim Meyering <meyering@redhat.com>2009-08-10 11:53:33 +0200
commit7c68bcde3d34047cfbae45fb26a221a52ab6e3ea (patch)
treee0c291fd76a10b9c87d60b2ccbfbaa8374c6db6d /daemon/daemon.h
parent894d7c6733373bb333a4e148cf17c0aab97b8f96 (diff)
downloadlibguestfs-7c68bcde3d34047cfbae45fb26a221a52ab6e3ea.tar.gz
libguestfs-7c68bcde3d34047cfbae45fb26a221a52ab6e3ea.tar.xz
libguestfs-7c68bcde3d34047cfbae45fb26a221a52ab6e3ea.zip
define ATTRIBUTE_UNUSED
* daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define.
Diffstat (limited to 'daemon/daemon.h')
-rw-r--r--daemon/daemon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 70a23519..a6bbb732 100644
--- 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 */