diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-06 15:25:03 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-10 11:53:33 +0200 |
commit | 7c68bcde3d34047cfbae45fb26a221a52ab6e3ea (patch) | |
tree | e0c291fd76a10b9c87d60b2ccbfbaa8374c6db6d | |
parent | 894d7c6733373bb333a4e148cf17c0aab97b8f96 (diff) | |
download | libguestfs-7c68bcde3d34047cfbae45fb26a221a52ab6e3ea.tar.gz libguestfs-7c68bcde3d34047cfbae45fb26a221a52ab6e3ea.tar.xz libguestfs-7c68bcde3d34047cfbae45fb26a221a52ab6e3ea.zip |
define ATTRIBUTE_UNUSED
* daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define.
-rw-r--r-- | daemon/daemon.h | 10 |
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 */ |