Skip to content
Permalink
Browse files

Check if _POSIX_C_SOURCE is defined

  • Loading branch information...
Derriick committed Feb 20, 2019
1 parent 718dfda commit 92c893976d8f4eba2478bb79e9ec0a8136119874
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/systemd/sd-event.h
@@ -71,7 +71,7 @@ typedef int (*sd_event_handler_t)(sd_event_source *s, void *userdata);
typedef int (*sd_event_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
typedef int (*sd_event_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata);
#if defined _GNU_SOURCE || _POSIX_C_SOURCE >= 199309L
#if defined _GNU_SOURCE || (defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L)
typedef int (*sd_event_child_handler_t)(sd_event_source *s, const siginfo_t *si, void *userdata);
#else
typedef void* sd_event_child_handler_t;

0 comments on commit 92c8939

Please sign in to comment.
You can’t perform that action at this time.