osx: fix remaining compiler warnings

Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Žilvinas Valinskas
2014-05-02 20:02:59 +03:00
committed by Thomas Graf
parent 852008c4ae
commit ee98b9ea30
3 changed files with 11 additions and 2 deletions

View File

@ -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;