summaryrefslogtreecommitdiff
path: root/include/extern.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/extern.h')
-rw-r--r--include/extern.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/extern.h b/include/extern.h
index 90c01744e..645b57499 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -1343,4 +1343,24 @@ E void eventprintf(char *fmt, ...);
E void event_process_hook(char *name, int argc, char **argv);
E void send_event(char *name, int argc, ...);
+#ifndef va_copy
+# ifdef __va_copy
+# define VA_COPY(DEST,SRC) __va_copy((DEST),(SRC))
+# else
+# define VA_COPY(DEST, SRC) memcpy ((&DEST), (&SRC), sizeof(va_list))
+# endif
+#else
+# ifdef HAVE_VA_LIST_AS_ARRAY
+# define VA_COPY(DEST,SRC) va_copy(*(DEST) = *(SRC))
+# else
+# define VA_COPY(DEST, SRC) va_copy(DEST, SRC)
+# endif
+#endif
+
+#ifdef __STRICT_ANSI__
+#ifndef fileno
+int fileno(FILE *stream);
+#endif
+#endif
+
#endif /* EXTERN_H */