summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-12-13 11:08:07 +0300
committerSangwan Kwon <sangwan.kwon@samsung.com>2020-01-07 10:59:20 +0900
commit723ec9261dc7b8283324b2fe89210a677f1433fc (patch)
tree41478b220d76f93589ccc0ef20ca734671cac6f5
parent14c58c0f6fd3e6be40cf8139892045f54cbbadde (diff)
downloadaudit-trail-723ec9261dc7b8283324b2fe89210a677f1433fc.tar.gz
audit-trail-723ec9261dc7b8283324b2fe89210a677f1433fc.tar.bz2
audit-trail-723ec9261dc7b8283324b2fe89210a677f1433fc.zip
Since glibc 2.25 sys/sysmacros.h is not included by sys/types.h. system-log.cpp:266:10: error: 'makedev' was not declared in this scope 266 | *dev = makedev(majorNum, minorNum); Change-Id: Idec1087a1289366d4fb3c8c33d362e596fe17623 Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com> Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
-rw-r--r--lib/audit-trail/system-log.cpp1
-rw-r--r--tools/cli/audit-trail-admin-cli.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/audit-trail/system-log.cpp b/lib/audit-trail/system-log.cpp
index 7ef310d..e12ed2f 100644
--- a/lib/audit-trail/system-log.cpp
+++ b/lib/audit-trail/system-log.cpp
@@ -15,6 +15,7 @@
*/
#include <cstring>
#include <sys/socket.h>
+#include <sys/sysmacros.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/tools/cli/audit-trail-admin-cli.cpp b/tools/cli/audit-trail-admin-cli.cpp
index 1bfc424..5a73006 100644
--- a/tools/cli/audit-trail-admin-cli.cpp
+++ b/tools/cli/audit-trail-admin-cli.cpp
@@ -33,6 +33,7 @@
#include <iostream>
#include <sys/socket.h>
+#include <sys/sysmacros.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>