1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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

@ -67,6 +67,8 @@
#elif defined(linux) #elif defined(linux)
# include <wctype.h> # include <wctype.h>
# define NO_putwc # define NO_putwc
#elif defined(CSRG_BASED)
# include <wctype.h>
#endif /* linux */ #endif /* linux */
#include <sys/wait.h> #include <sys/wait.h>

View file

@ -295,7 +295,7 @@ main(
XtSetLanguageProc(NULL, NULL, NULL); XtSetLanguageProc(NULL, NULL, NULL);
_DtEnvControl(DT_ENV_SET); _DtEnvControl(DT_ENV_SET);
(void) signal(SIGCLD, (void (*)())SIG_IGN); (void) signal(SIGCHLD, (void (*)())SIG_IGN);
/* Initialize the toolkit and open the display */ /* Initialize the toolkit and open the display */
XtToolkitInitialize() ; XtToolkitInitialize() ;
@ -407,7 +407,7 @@ SetGidUid ( unsigned short rgid, unsigned short ruid )
/* fix process gid */ /* fix process gid */
#if defined(SVR4) || defined(_AIX) #if defined(SVR4) || defined(_AIX)
setgid(rgid); setgid(rgid);
#elif defined(__osf__) || defined(linux) #elif defined(__osf__) || defined(linux) || defined(CSRG_BASED)
setregid(rgid, rgid); setregid(rgid, rgid);
#elif defined(__hpux) #elif defined(__hpux)
setresgid(rgid, rgid, rgid); setresgid(rgid, rgid, rgid);
@ -418,7 +418,7 @@ SetGidUid ( unsigned short rgid, unsigned short ruid )
/* fix process uid */ /* fix process uid */
#if defined (SVR4) || defined (_AIX) #if defined (SVR4) || defined (_AIX)
setuid(ruid); setuid(ruid);
#elif defined(__osf__) || defined(linux) #elif defined(__osf__) || defined(linux) || defined(CSRG_BASED)
setreuid(ruid, ruid); setreuid(ruid, ruid);
#elif defined(__hpux) #elif defined(__hpux)
setresuid(ruid, ruid, ruid); setresuid(ruid, ruid, ruid);

View file

@ -47,7 +47,9 @@
#define _ABOBJ_P_H_ #define _ABOBJ_P_H_
#if !defined(CSRG_BASED)
#include <values.h> #include <values.h>
#endif
#include <ab_private/abobj.h> #include <ab_private/abobj.h>
#include <ab_private/abobj_set.h> #include <ab_private/abobj_set.h>

View file

@ -49,7 +49,9 @@
*********************************************************************** ***********************************************************************
*/ */
#include <stdio.h> #include <stdio.h>
#if !defined(CSRG_BASED)
#include <values.h> #include <values.h>
#endif
#include <Xm/Xm.h> #include <Xm/Xm.h>
#include <Xm/List.h> #include <Xm/List.h>
#include <Dt/SpinBox.h> #include <Dt/SpinBox.h>

View file

@ -86,6 +86,10 @@
#include "dtbuilder.h" #include "dtbuilder.h"
#include "revolv_ui.h" #include "revolv_ui.h"
#if defined(CSRG_BASED)
#define MAXINT INT_MAX
#endif
char *LabelForString = NULL; char *LabelForString = NULL;
char *LabelForGraphic = NULL; char *LabelForGraphic = NULL;
char *NoneItem = NULL; char *NoneItem = NULL;

View file

@ -47,7 +47,9 @@
#define _PROPS_H_ #define _PROPS_H_
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
#if !defined(CSRG_BASED)
#include <values.h> #include <values.h>
#endif
#include <limits.h> #include <limits.h>
#include <ab_private/obj.h> #include <ab_private/obj.h>
#include <ab_private/pal.h> #include <ab_private/pal.h>

View file

@ -48,7 +48,9 @@
#define _PROPP_H_ #define _PROPP_H_
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
#if !defined(CSRG_BASED)
#include <values.h> #include <values.h>
#endif
#include <ab_private/obj.h> #include <ab_private/obj.h>
#include <ab_private/pal.h> #include <ab_private/pal.h>
#include <ab_private/abobj_edit.h> #include <ab_private/abobj_edit.h>

View file

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

View file

@ -350,7 +350,7 @@ write_func_def_params(
va_list va_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) #define va_start_params() __va_copy(params, va_params)
#else #else
#define va_start_params() (params = va_params) #define va_start_params() (params = va_params)

View file

@ -47,7 +47,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
#if !defined(CSRG_BASED)
#include <values.h> #include <values.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <sys/param.h> #include <sys/param.h>
#include <string.h> #include <string.h>