[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Mon, 23 Dec 2024 09:47:48 -0500 (EST) |
branch: master
commit e3ddefe01b63cc92fe2cb3fcd29ff3ff11cf7f4d
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Dec 23 14:47:16 2024 +0000
Remove system.h defines
* system.h, info/tilde.c: move include of <pwd.h> to tilde.c.
---
ChangeLog | 6 ++++++
info/tilde.c | 7 +++++++
system.h | 6 ------
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index df1a41905c..6b5803475d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-23 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Remove system.h defines
+
+ * system.h, info/tilde.c: move include of <pwd.h> to tilde.c.
+
2024-12-23 Gavin Smith <gavinsmith0123@gmail.com>
Remove system.h defines
diff --git a/info/tilde.c b/info/tilde.c
index 4b3459f88a..3b74dd5a65 100644
--- a/info/tilde.c
+++ b/info/tilde.c
@@ -20,6 +20,13 @@
#include "info.h"
#include "tilde.h"
+#ifdef HAVE_PWD_H
+#include <pwd.h>
+#endif
+/* Some systems don't declare this function in pwd.h. */
+struct passwd *getpwnam (const char *name);
+
+
/* Do the work of tilde expansion on FILENAME. FILENAME starts with a
tilde. */
char *
diff --git a/system.h b/system.h
index b946565136..c122642d01 100644
--- a/system.h
+++ b/system.h
@@ -158,10 +158,4 @@ extern int kill (pid_t, int);
# define PIPE_USE_FORK 1
#endif /* not O_BINARY */
-#ifdef HAVE_PWD_H
-#include <pwd.h>
-#endif
-/* Some systems don't declare this function in pwd.h. */
-struct passwd *getpwnam (const char *name);
-
#endif /* TEXINFO_SYSTEM_H */