[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: pid_t causes compile error in FreeBSD system
From: |
Stefan Monnier |
Subject: |
Re: Fwd: pid_t causes compile error in FreeBSD system |
Date: |
Mon, 24 Apr 2006 03:36:40 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> He seems to be using the latest sources, so I hope someone can fix this.
Let's see.
> http://cvs.savannah.gnu.org/viewcvs/emacs/src/process.h?root=emacs#rev1.33
> This change causes compile error in FreeBSD system.
> Compiler cannot find pid_t.
Does the patch below fix the problem?
Stefan
--- process.h 08 avr 2006 10:23:15 -0400 1.33
+++ process.h 24 avr 2006 03:35:20 -0400
@@ -19,6 +19,12 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* This structure records information about a subprocess
or network connection.