Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas 'Sortie' Termansen <sortie@maxsi.org>2014-06-24 03:37:47 +0400
committerRodrigo Kumpera <kumpera@gmail.com>2014-06-26 17:57:34 +0400
commit647926630494f6601ac1e047863626c39fc72e0c (patch)
treed7c36bfad0bc372866221083d2a8f525d91a980c /support
parent3512f22ee7b3be0acdcaac43d199f907838ac22f (diff)
Use <poll.h> to get poll rather than <sys/poll.h>
POSIX specifies <poll.h> as the standard header that declares the poll function. Many systems provide <sys/poll.h> to be compatible with historical practice. Prefer the <poll.h> header over <sys/poll.h> if it is available. This change is released under the MIT/X11 license.
Diffstat (limited to 'support')
-rw-r--r--support/serial.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/serial.c b/support/serial.c
index 36b902defb9..dab4ccc3fe7 100644
--- a/support/serial.c
+++ b/support/serial.c
@@ -5,6 +5,9 @@
* Author: Chris Toshok <toshok@ximian.com>
*/
+#include "map.h"
+#include "mph.h"
+
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
@@ -12,7 +15,9 @@
#include <errno.h>
#if defined(__APPLE__)
#include "fakepoll.h"
-#else
+#elif defined(HAVE_POLL_H)
+#include <poll.h>
+#elif defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
#endif
#include <sys/ioctl.h>