]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Fix build with GCC 12 (and musl) 743/head
authorSam James <sam@gentoo.org>
Fri, 2 Sep 2022 05:48:56 +0000 (06:48 +0100)
committerSam James <sam@gentoo.org>
Fri, 2 Sep 2022 05:49:29 +0000 (06:49 +0100)
```
DBusMessage.h:239:34: error: 'time_t' has not been declared
  239 |     Hihi& operator>>(Hihi& hihi, time_t& data);
```

Include <ctime> to grab time_t.

Bug: https://bugs.gentoo.org/862094
Signed-off-by: Sam James <sam@gentoo.org>
dbus/DBusMessage.h

index 97ff5648a9eae6d463d42ed6e0b933ed3199a431..4d5ce3749a663e02ac8256f4e4a56b72fc096e1a 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <dbus/dbus.h>
 
+#include <ctime>
 #include <string>
 #include <vector>
 #include <list>