aboutsummaryrefslogtreecommitdiffstats
path: root/common/common-defs.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/common-defs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/common-defs.h b/common/common-defs.h
index 4a550c310..861967fe4 100644
--- a/common/common-defs.h
+++ b/common/common-defs.h
@@ -20,6 +20,17 @@
#ifndef GNUPG_COMMON_COMMON_DEFS_H
#define GNUPG_COMMON_COMMON_DEFS_H
+
+/* Dummy replacement for getenv. */
+#ifndef HAVE_GETENV
+#define getenv(a) (NULL)
+#endif
+
+#ifdef HAVE_W32CE_SYSTEM
+#define getpid() GetCurrentProcessId ()
+#endif
+
+
/*-- ttyio.c --*/
void tty_private_set_rl_hooks (void (*init_stream) (FILE *),
void (*set_completer) (rl_completion_func_t*),