]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
Fix 'errno undeclared' compile error with older gcc versions
authorMichele Perrone <michele.perrone@weiss.ch>
Thu, 17 Aug 2023 11:13:04 +0000 (13:13 +0200)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sat, 2 Sep 2023 07:32:45 +0000 (16:32 +0900)
It looks like errno.h has to be included explicitly when compiling with older
gcc versions. This issue was encountered on the following system:
- Ubuntu 20.04 LTS
- Linux 5.4.0-156
- gcc 10.5.0
- Meson 0.53.2

src/timer/query.c

index 4298e7a58287f858ecd9557d1358117e4a64b515..23f724775b723a3ff4e86f26eeaf9291572e5521 100644 (file)
@@ -10,6 +10,7 @@
 #include <unistd.h>
 #include <stdio.h>
 #include <stdbool.h>
+#include <errno.h>
 
 #include <time.h>