summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-11-01 16:21:45 +0200
committerEli Zaretskii <eliz@gnu.org>2012-11-01 16:21:45 +0200
commit7e8b50d9e556b1c8b393199995ef3ea85b9f4525 (patch)
tree31db49285d656afca45d08fd4d57234351d953ef /nt
parent7a8d34f74e840bed818cc7f537fb1946bf91f062 (diff)
downloademacs-7e8b50d9e556b1c8b393199995ef3ea85b9f4525.tar.gz
Fix MS-Windows build broken by fixing bug #12776 on Posix platforms.
src/w32proc.c (getpgrp, setpgid): New functions. nt/inc/unistd.h (setpgid, getpgrp): Provide prototypes. nt/config.nt (GETPGRP_VOID): Define to 1.
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog6
-rw-r--r--nt/config.nt2
-rw-r--r--nt/inc/unistd.h2
3 files changed, 9 insertions, 1 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index c915ee40bb6..d34d23df4d5 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,9 @@
+2012-11-01 Eli Zaretskii <eliz@gnu.org>
+
+ * inc/unistd.h (setpgid, getpgrp): Provide prototypes. (Bug#12776)
+
+ * config.nt (GETPGRP_VOID): Define to 1.
+
2012-10-24 Juanma Barranquero <lekktu@gmail.com>
* config.nt: Sync with autogen/config.in.
diff --git a/nt/config.nt b/nt/config.nt
index 4dc7ede188b..ed1cddf1e12 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -184,7 +184,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define GC_SETJMP_WORKS 1
/* Define to 1 if the `getpgrp' function requires zero arguments. */
-#undef GETPGRP_VOID
+#define GETPGRP_VOID 1
/* Define if gettimeofday clobbers the localtime buffer. */
#undef GETTIMEOFDAY_CLOBBERS_LOCALTIME
diff --git a/nt/inc/unistd.h b/nt/inc/unistd.h
index 7db6cf08bea..383bc3decec 100644
--- a/nt/inc/unistd.h
+++ b/nt/inc/unistd.h
@@ -10,5 +10,7 @@
extern ssize_t readlink (const char *, char *, size_t);
extern int symlink (char const *, char const *);
+extern int setpgid (pid_t, pid_t);
+extern pid_t getpgrp (void);
#endif /* _UNISTD_H */