gbranden pushed a commit to branch master
in repository groff.
commit 96147b643c103328f7a6464de4591b621b860d27
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Dec 3 02:23:53 2024 -0600
[libgroff]: Fix Android/Bionic libc/Termux build.
* src/libs/libgroff/maxfilename.cpp: Include local "posix.h" header
before "nonposix.h" (and both before "lib.h"), aligning better with
other groff code, and fixing build on Androic/Bionic libc/Termux.
---
ChangeLog | 7 +++++++
src/libs/libgroff/maxfilename.cpp | 8 ++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1d656dad3..938e8fff9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-12-03 G. Branden Robinson <[email protected]>
+
+ * src/libs/libgroff/maxfilename.cpp: Include local "posix.h"
+ header before "nonposix.h" (and both before "lib.h"), aligning
+ better with other groff code, and fixing build on Androic/Bionic
+ libc/Termux.
+
2024-12-03 G. Branden Robinson <[email protected]>
* src/devices/grops/ps.cpp: Include local "posix.h" header
diff --git a/src/libs/libgroff/maxfilename.cpp
b/src/libs/libgroff/maxfilename.cpp
index 23eb61557..bd40b95d8 100644
--- a/src/libs/libgroff/maxfilename.cpp
+++ b/src/libs/libgroff/maxfilename.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
Written by James Clark ([email protected])
This file is part of groff.
@@ -20,10 +20,14 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>. */
#include <config.h>
#endif
-/* file_name_max(dir) does the same as pathconf(dir, _PC_NAME_MAX) */
+// needed for _PC_NAME_MAX, pathconf()
+#include "posix.h"
+#include "nonposix.h"
#include "lib.h"
+/* file_name_max(dir) does the same as pathconf(dir, _PC_NAME_MAX) */
+
#ifdef _POSIX_VERSION
size_t file_name_max(const char *fname)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit