Skip to content

Commit

Permalink
Fix warning about LIST_HEAD on MacOSX
Browse files Browse the repository at this point in the history
On Mac LIST_HEAD is define in a header somewhere.
Make sure we erase them to avoid a warning.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou>
  • Loading branch information
Pantelis Antoniou committed Dec 12, 2024
1 parent 5456645 commit 6e52e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/fy-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct list_head {

#define LIST_HEAD_INIT(name) { &(name), &(name) }

#undef LIST_HEAD
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)

Expand Down

0 comments on commit 6e52e4d

Please sign in to comment.