[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Mon, 23 Dec 2024 12:17:02 -0500 (EST) |
branch: master
commit 309c8e11bba081d3cfeb2f23b585d33ebf95e847
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Dec 23 17:14:24 2024 +0000
Remove system.h includes
* system.h, info/info.h, install-info/install-info.c:
remove include of <sys/stat.h> and redefinition of S_ISDIR from
system.h.
---
ChangeLog | 8 ++++++++
info/info.h | 2 ++
install-info/install-info.c | 3 +++
system.h | 5 -----
4 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a9f26f5047..f02a9d33eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-12-23 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Remove system.h includes
+
+ * system.h, info/info.h, install-info/install-info.c:
+ remove include of <sys/stat.h> and redefinition of S_ISDIR from
+ system.h.
+
2024-12-23 Gavin Smith <gavinsmith0123@gmail.com>
* system.h (HAVE_LONG_FILENAMES): Remove as it is not used
diff --git a/info/info.h b/info/info.h
index 44ef1dfebd..4a2968397c 100644
--- a/info/info.h
+++ b/info/info.h
@@ -27,6 +27,8 @@
#include <limits.h>
#include <ctype.h>
#include <errno.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <unistd.h>
/* From gnulib */
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 62467c32c8..ee06addf77 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -22,8 +22,11 @@
#include <getopt.h>
#include <regex.h>
#include <argz.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <unistd.h>
+
/* From gnulib */
#include "xalloc.h"
diff --git a/system.h b/system.h
index e782a44a71..7bf5442160 100644
--- a/system.h
+++ b/system.h
@@ -36,11 +36,6 @@
#define _(String) gettext (String)
#define N_(String) (String)
-#include <sys/stat.h>
-#if !defined(S_ISDIR) && defined(S_IFDIR)
-# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
-#endif
-
/* MS-DOS and similar non-Posix systems have some peculiarities:
- they distinguish between binary and text files;
- they use both `/' and `\\' as directory separator in file names;
- master updated (e3ddefe01b -> 309c8e11bb), Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject], Gavin D. Smith, 2024/12/23
- [no subject],
Gavin D. Smith <=