From c36a60687976d98b54dac17f699dfca4918a737c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 14 Mar 2018 10:07:42 +0100 Subject: 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 --- src/w32-add.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/w32-add.h') 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))) -- cgit v1.2.3