aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-05-12 10:34:32 +0300
committerEli Zaretskii <eliz@gnu.org>2016-05-12 10:34:32 +0300
commit7458e696b5563f64e4da81ae95f88c7f36896ab8 (patch)
tree2911cc52af37c8f095d8247519d7ee6540b47e2c
parenta6df7afc605079df7d85318846a522ef64aaa44d (diff)
downloadegawk-7458e696b5563f64e4da81ae95f88c7f36896ab8.tar.gz
egawk-7458e696b5563f64e4da81ae95f88c7f36896ab8.tar.bz2
egawk-7458e696b5563f64e4da81ae95f88c7f36896ab8.zip
Fix compilation warnings in MinGW builds.
-rw-r--r--ChangeLog5
-rw-r--r--nonposix.h18
-rw-r--r--pc/ChangeLog4
-rw-r--r--pc/Makefile2
4 files changed, 28 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e9ef895..5b99d92c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-12 Eli Zaretskii <eliz@gnu.org>
+
+ * nonposix.h: Add prototypes for Posix functions emulated in pc/*
+ files.
+
2016-05-03 Andrew J. Schorr <aschorr@telemetry-investments.com>
* builtin.c (format_tree): After the string has been rendered, use
diff --git a/nonposix.h b/nonposix.h
index 976e0b7d..744914b1 100644
--- a/nonposix.h
+++ b/nonposix.h
@@ -43,4 +43,22 @@
int w32_status_to_termsig (unsigned);
+/* Prototypes of for Posix functions for which we define replacements
+ in pc/ files. */
+
+/* getid.c */
+unsigned int getuid (void);
+unsigned int geteuid (void);
+unsigned int getgid (void);
+unsigned int getegid (void);
+
+/* gawkmisc.pc */
+int unsetenv (const char *);
+int setenv (const char *, const char *, int);
+#endif /* __MINGW32__ */
+
+int getpgrp(void);
+
+#if defined(__DJGPP__) || defined(__MINGW32__)
+int getppid(void);
#endif
diff --git a/pc/ChangeLog b/pc/ChangeLog
index 56417a7b..c46f874a 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-12 Eli Zaretskii <eliz@gnu.org>
+
+ * Makefile ($(ALLOBJS) $(LIBOBJS)): Depend on nonposix.h.
+
2016-04-23 Eli Zaretskii <eliz@gnu.org>
* Makefile.tst (pty1): Ignore errors (happens with MinGW).
diff --git a/pc/Makefile b/pc/Makefile
index 23b90464..57c0dc45 100644
--- a/pc/Makefile
+++ b/pc/Makefile
@@ -242,7 +242,7 @@ $(RSPFILE) : $(GAWKOBJS)
# included by awk.h.
# 2. custom.h is not mentioned because pc ports don't use it.
$(ALLOBJS) $(LIBOBJS): \
- awk.h regex.h config.h gettext.h mbsupport.h protos.h dfa.h getopt.h
+ awk.h regex.h config.h gettext.h mbsupport.h protos.h dfa.h getopt.h nonposix.h
builtin$O: floatmagic.h random.h popen.h