aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-add.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-14 09:07:42 +0000
committerWerner Koch <[email protected]>2018-03-14 09:07:42 +0000
commitc36a60687976d98b54dac17f699dfca4918a737c (patch)
tree4b1d2ef11fa0ca76876d3262976e7c4984e89b64 /src/w32-add.h
parentPost release updates (diff)
downloadlibgpg-error-c36a60687976d98b54dac17f699dfca4918a737c.tar.gz
libgpg-error-c36a60687976d98b54dac17f699dfca4918a737c.zip
core: Fix building on W64
* src/w32-add.h: Remove hack to define pid_t. * src/gpg-error.h.in: Eval macro to define pid_t. * src/mkheader.c (have_sys_types_h, sys_types_h_included): New. (parse_config_h): Test for sys/types.h. (write_special): Protect inclusion of sys/types.h. Define new macro 'define:pid_t'. -- Regression-due-to: 1865c0ba1769b407a3c504f1ab0a4278704a9fc1 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/w32-add.h')
-rw-r--r--src/w32-add.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/w32-add.h b/src/w32-add.h
index 6f9f12a..07e3c7d 100644
--- a/src/w32-add.h
+++ b/src/w32-add.h
@@ -3,10 +3,6 @@
## peculiarity of the script the first used line must not
## start with a hash mark.
-/* Fixme: This is a quick hack. We need to check whether the compiler
- * actually in use already knows that type. */
-typedef int pid_t;
-
/* Decide whether to use the format_arg attribute. */
#if _GPG_ERR_GCC_VERSION > 20800
# define _GPG_ERR_ATTR_FORMAT_ARG(a) __attribute__ ((__format_arg__ (a)))