aboutsummaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2015-08-29 14:47:59 +0300
committerFreddie Chopin <freddie.chopin@gmail.com>2015-11-03 21:38:58 +0000
commitc1c4a6dd7f5f08cd801a323f1473d1a92543e336 (patch)
tree74144b555c8d19191c11881f3cf27aa20557d92e /src/helper
parent26045588f462476cee356d15a24944d6c26befb4 (diff)
downloadriscv-openocd-c1c4a6dd7f5f08cd801a323f1473d1a92543e336.zip
riscv-openocd-c1c4a6dd7f5f08cd801a323f1473d1a92543e336.tar.gz
riscv-openocd-c1c4a6dd7f5f08cd801a323f1473d1a92543e336.tar.bz2
Change from sys/poll.h to standard poll.h location
According to "man 2 poll" the correct header to include is poll.h, not sys/poll.h. Reported by a build against musl. Change-Id: I5298b49dc947d1a368e423104c0c0c7b9bdd1a10 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/2947 Tested-by: jenkins
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/system.h b/src/helper/system.h
index f710cfb..a6dfd7e 100644
--- a/src/helper/system.h
+++ b/src/helper/system.h
@@ -56,8 +56,8 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
-#ifdef HAVE_SYS_POLL_H
-#include <sys/poll.h>
+#ifdef HAVE_POLL_H
+#include <poll.h>
#endif
#ifdef __ECOS