diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-01-17 21:32:03 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-01-17 21:32:03 +0000 |
commit | ee39d6d85cfcfa8e856c410c0ad4cd96e8fded55 (patch) | |
tree | 4bd397d55198bfd01fc6744430f25faf08f18b0c /source/include/platform/accygwin.h | |
parent | b28e481ae9b051dab150e9b5a89730cdc1103a9c (diff) |
Notes
Diffstat (limited to 'source/include/platform/accygwin.h')
-rw-r--r-- | source/include/platform/accygwin.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/include/platform/accygwin.h b/source/include/platform/accygwin.h index 831f31398792..7c19580bf02b 100644 --- a/source/include/platform/accygwin.h +++ b/source/include/platform/accygwin.h @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2012, Intel Corp. + * Copyright (C) 2000 - 2013, Intel Corp. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -50,6 +50,7 @@ #define ACPI_USE_SYSTEM_CLIBRARY #define ACPI_USE_DO_WHILE_0 #define ACPI_FLUSH_CPU_CACHE() + /* * This is needed since sem_timedwait does not appear to work properly * on cygwin (always hangs forever). @@ -89,4 +90,13 @@ #include "acgcc.h" + +/* + * The vsnprintf function is defined by c99, but cygwin/gcc does not + * enable this prototype when the -ansi flag is set. Also related to + * __STRICT_ANSI__. So, we just declare the prototype here. + */ +int +vsnprintf (char *s, size_t n, const char *format, va_list ap); + #endif /* __ACCYGWIN_H__ */ |