[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH] include sys/sysmacros.h for major
From: |
Mike Frysinger |
Subject: |
[gpsd-dev] [PATCH] include sys/sysmacros.h for major |
Date: |
Mon, 9 May 2016 14:44:48 -0400 |
These functions are not part of any official spec, and Linux C libs have
always kept them in sys/sysmacros.h. Include the header directly to fix
builds w/alternative C libs, and to work with future glibc versions.
---
serial.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/serial.c b/serial.c
index d8bdd8c..b748cab 100644
--- a/serial.c
+++ b/serial.c
@@ -14,6 +14,9 @@
#include <unistd.h>
#include <sys/socket.h>
#include <sys/param.h> /* defines BSD */
+#ifdef __linux__
+#include <sys/sysmacros.h>
+#endif
#include "gpsd_config.h"
#ifdef ENABLE_BLUEZ
--
2.7.4