OpenBSD fixes for DtWidget, dtaction, dtappbuilder.

This commit is contained in:
Pascal Stumpf
2012-08-10 14:35:23 +02:00
committed by Jon Trulson
parent 8bbf5a7a1b
commit 3718075b7c
10 changed files with 21 additions and 5 deletions

View File

@@ -279,7 +279,7 @@ printf_setval(GenCodeInfo genCodeInfo, ABObj obj, ...)
{
int return_value = 0;
File codeFile = genCodeInfo->code_file;
#if defined(__osf__) || defined(linux)
#if defined(__osf__) || defined(linux) || defined(CSRG_BASED)
/* OSF/1 define va_list in <va_list.h> as structure of char ** and int
* Sun define va_list as void * */
va_list paramList = { NULL, 0 };

View File

@@ -350,7 +350,7 @@ write_func_def_params(
va_list va_params
)
{
#if defined(__ppc) || defined(linux)
#if defined(__ppc) || defined(linux) || defined(CSRG_BASED)
#define va_start_params() __va_copy(params, va_params)
#else
#define va_start_params() (params = va_params)