[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] Fix build against musl libc
From: |
Baruch Siach |
Subject: |
[gpsd-dev] [PATCH] Fix build against musl libc |
Date: |
Tue, 23 Jun 2015 09:12:01 +0300 |
musl does not include sys/ttydefaults.h from sys/termios.h. Include it
explicitly.
Fixes build failures like:
gpsmon.o: In function `main':
gpsmon.c:(.text.startup+0x8f4): undefined reference to `CTRL'
---
gpsmon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gpsmon.c b/gpsmon.c
index c3001c865821..0ccf74110b5a 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
+#include <sys/ttydefaults.h>
#include <fcntl.h>
#include <unistd.h>
--
2.1.4