diff options
author | Žilvinas Valinskas <zilvinas.valinskas@gmail.com> | 2014-05-02 20:02:59 +0300 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2014-06-02 15:03:26 +0200 |
commit | ee98b9ea304744766e22ccc10899dadf71a361b8 (patch) | |
tree | bdb06efde359947e3e24a0d3bcda3b5279b1a39d /include/bmon/list.h | |
parent | 852008c4aebfaa4f26efaf41a2c05ffd7e399869 (diff) |
osx: fix remaining compiler warnings
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'include/bmon/list.h')
-rw-r--r-- | include/bmon/list.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bmon/list.h b/include/bmon/list.h index c7569d7..fff9409 100644 --- a/include/bmon/list.h +++ b/include/bmon/list.h @@ -8,6 +8,14 @@ #ifndef BMON_LIST_H_ #define BMON_LIST_H_ +#ifdef __APPLE__ +/* Apple systems define these macros in system headers, so we undef + * them prior to inclusion of this file */ +#undef LIST_HEAD +#undef LIST_HEAD_INIT +#undef INIT_LIST_HEAD +#endif + struct list_head { struct list_head * next; |