summaryrefslogtreecommitdiffhomepage
path: root/src/mypoll.h
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-17 21:03:51 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-17 21:03:51 +0100
commitda1bc1425d954ab5f3cb518fac10286ba958c3bc (patch)
tree22ae8bd33462c240ce07fb096ac9c8efb0f1e96f /src/mypoll.h
parent22e4898519e9db7aabacad1343c20fc49176dbf4 (diff)
tune error messages to show select or poll depending on what is used
Diffstat (limited to 'src/mypoll.h')
-rw-r--r--src/mypoll.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mypoll.h b/src/mypoll.h
index a336680..8736015 100644
--- a/src/mypoll.h
+++ b/src/mypoll.h
@@ -4,6 +4,7 @@
#include "config.h"
#ifdef HAVE_POLL_H
+#define SELECT_OR_POLL "poll"
#include <poll.h>
typedef struct pollfd pollfd_struct;
@@ -13,6 +14,7 @@ typedef struct pollfd pollfd_struct;
#else
+#define SELECT_OR_POLL "select"
#include <sys/select.h>
typedef struct mypollfd {
int fd;