]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix building on uclibc
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Sat, 3 Jan 2026 21:59:39 +0000 (22:59 +0100)
committerOndřej Surý (GitLab job 6687688) <ondrej@isc.org>
Sun, 4 Jan 2026 20:47:47 +0000 (20:47 +0000)
While building on uclibc this error is thrown:
In file included from ./include/dns/log.h:20,
                 from callbacks.c:19:
../../lib/isc/include/isc/log.h:141:9: error: unknown type name ‘off_t’
  141 |         off_t maximum_size;
      |         ^~~~~

This is due to missing include unistd.h, so let's add it on top of
isc/log.h

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
(cherry picked from commit 0e43f62c1233adb9543dd378c6b4fba3dbde75a3)

lib/isc/include/isc/log.h

index 5a9a7a1bb331970c85d9660b0d6cdd86aa4c42ae..e2bec5355dca8a1d69919651017f619823384be0 100644 (file)
@@ -19,6 +19,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <syslog.h> /* XXXDCL NT */
+#include <unistd.h>
 
 #include <isc/formatcheck.h>
 #include <isc/lang.h>