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

Changed a couple of ifdefs for __FreeBSD__ to CSRG_BASED. These are all clearcut cases. I left the ones I had doubts about, or where I wasn't sure about the OpenBSD side of things to look at later.

This commit is contained in:
Jelle Hermsen 2012-09-29 13:14:57 +02:00 committed by Jon Trulson
parent 8cfdf21526
commit b8862cab32
23 changed files with 31 additions and 31 deletions

View file

@ -86,7 +86,7 @@
# define __SVR4_I386_ABI_L1__ # define __SVR4_I386_ABI_L1__
#endif #endif
#include <limits.h> /* pickup WORD_BIT, LONG_BIT */ #include <limits.h> /* pickup WORD_BIT, LONG_BIT */
#if defined(linux) || defined(__FreeBSD__) #if defined(linux) || defined(CSRG_BASED)
# undef __SVR4_I386_ABI_L1__ # undef __SVR4_I386_ABI_L1__
# ifndef WORD_BIT # ifndef WORD_BIT
# define WORD_BIT 32 # define WORD_BIT 32

View file

@ -37,7 +37,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "util/copyright.h" #include "util/copyright.h"
#if defined(linux) || defined(sgi) || defined(__FreeBSD__) #if defined(linux) || defined(sgi) || defined(CSRG_BASED)
#include <getopt.h> #include <getopt.h>
#endif #endif
#include "dbck.h" #include "dbck.h"

View file

@ -42,7 +42,7 @@
#if defined(linux) #if defined(linux)
#include <unistd.h> #include <unistd.h>
#endif #endif
#if defined(sgi) || defined(__FreeBSD__) #if defined(sgi) || defined(CSRG_BASED)
#include <getopt.h> #include <getopt.h>
#endif #endif
#if defined(USL) || defined(__uxp__) #if defined(USL) || defined(__uxp__)

View file

@ -63,7 +63,7 @@
#include <termios.h> #include <termios.h>
#include <time.h> #include <time.h>
#if defined(sgi) || defined(__FreeBSD__) #if defined(sgi) || defined(CSRG_BASED)
#include <getopt.h> #include <getopt.h>
#endif #endif

View file

@ -53,7 +53,7 @@
#include <sys/resource.h> #include <sys/resource.h>
#include <unistd.h> #include <unistd.h>
#if defined(sgi) || defined(__FreeBSD__) #if defined(sgi) || defined(CSRG_BASED)
#include <getopt.h> #include <getopt.h>
#endif #endif

View file

@ -140,7 +140,7 @@ static void register_palette_info(
** ** ** **
**************************************************************************/ **************************************************************************/
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif

View file

@ -228,7 +228,7 @@ static XtTranslations proj_transtbl = NULL;
static XRectangle *rband_rect = NULL; static XRectangle *rband_rect = NULL;
static Boolean mselect_adjust = False; static Boolean mselect_adjust = False;
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif
char Buf[MAXPATHLEN]; /* Work buffer */ char Buf[MAXPATHLEN]; /* Work buffer */

View file

@ -93,7 +93,7 @@ static void mult_module_selected(
** ** ** **
**************************************************************************/ **************************************************************************/
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif
char Buf[MAXPATHLEN]; /* Work buffer */ char Buf[MAXPATHLEN]; /* Work buffer */

View file

@ -180,7 +180,7 @@ static void notify_proj_save_as_okCB(
** ** ** **
**************************************************************************/ **************************************************************************/
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif

View file

@ -350,9 +350,9 @@ write_func_def_params(
va_list va_params va_list va_params
) )
{ {
#if defined(__ppc) || defined(linux) || defined(__OpenBSD__) #if defined(__ppc)
#define va_start_params() __va_copy(params, va_params) #define va_start_params() __va_copy(params, va_params)
#elif defined(__FreeBSD__) #elif defined(CSRG_BASED) || defined(linux)
#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

@ -61,7 +61,7 @@
BIL_LOAD_INFO bilP_load; BIL_LOAD_INFO bilP_load;
char Buf[MAXPATHLEN]; char Buf[MAXPATHLEN];
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif

View file

@ -388,7 +388,7 @@ cm_printf(double value, int decimal_pt)
} }
#ifdef SunOS #ifdef SunOS
fconvert(value, decimal_pt, &deci_pt, &sign, buf); fconvert(value, decimal_pt, &deci_pt, &sign, buf);
#elif defined(__FreeBSD__) #elif defined(CSRG_BASED)
snprintf(buf, decimal_pt, "%f", value); snprintf(buf, decimal_pt, "%f", value);
#else #else
/* this version, available on the HP and AIX machine is not reentrant. */ /* this version, available on the HP and AIX machine is not reentrant. */

View file

@ -72,7 +72,7 @@
static Bool lookForButton(Display *, XEvent *, XPointer); static Bool lookForButton(Display *, XEvent *, XPointer);
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif

View file

@ -323,7 +323,7 @@ Help(
*****************************************************************************/ *****************************************************************************/
static void static void
#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux) #if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
PanicSignal(int s) PanicSignal(int s)
#else #else
PanicSignal(void) PanicSignal(void)
@ -360,7 +360,7 @@ PanicSignal(void)
*****************************************************************************/ *****************************************************************************/
static void static void
#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux) #if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
IgnoreSignal(int i) IgnoreSignal(int i)
#else #else
IgnoreSignal(void) IgnoreSignal(void)
@ -402,7 +402,7 @@ IgnoreSignal(void)
*****************************************************************************/ *****************************************************************************/
static void static void
#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux) #if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
UrgentSignal(int i) UrgentSignal(int i)
#else #else
UrgentSignal(void) UrgentSignal(void)
@ -453,7 +453,7 @@ UrgentSignal(void)
* *
*****************************************************************************/ *****************************************************************************/
static void static void
#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux) #if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
SigCld(int i) SigCld(int i)
#else #else
SigCld(void) SigCld(void)
@ -1525,7 +1525,7 @@ main (
* a SIGCLD, give up and exit. * a SIGCLD, give up and exit.
*/ */
if (rediscoverUrgentSigG > ((1000/SHORT_SELECT_TIMEOUT)*5) ) { if (rediscoverUrgentSigG > ((1000/SHORT_SELECT_TIMEOUT)*5) ) {
#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux) #if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
PanicSignal(0); PanicSignal(0);
#else #else
PanicSignal(); PanicSignal();

View file

@ -37,7 +37,7 @@
#include <X11/Xproto.h> /* for X_ChangeHosts */ #include <X11/Xproto.h> /* for X_ChangeHosts */
#include <X11/Xatom.h> /* for XA_STRING */ #include <X11/Xatom.h> /* for XA_STRING */
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
#endif #endif

View file

@ -32,7 +32,7 @@
#define _NFILE FOPEN_MAX #define _NFILE FOPEN_MAX
#endif #endif
#if !defined(linux) && !defined(__FreeBSD__) #if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[]; extern char *sys_errlist[];
extern int sys_nerr; extern int sys_nerr;
#endif #endif

View file

@ -214,7 +214,7 @@ hashalloc __PARAM__((Hash_table_t* ref, ...), (va_alist)) __OTORP__(va_dcl)
tab->flags |= HASH_STATIC; tab->flags |= HASH_STATIC;
break; break;
case HASH_va_list: case HASH_va_list:
#if defined(__FreeBSD__) && !defined(__LP64__) #if defined(CSRG_BASED) && !defined(__LP64__)
if (vp < &va[elementsof(va)]) *vp++ = ap; if (vp < &va[elementsof(va)]) *vp++ = ap;
ap = va_arg(ap, va_list); ap = va_arg(ap, va_list);
#else #else
@ -230,7 +230,7 @@ hashalloc __PARAM__((Hash_table_t* ref, ...), (va_alist)) __OTORP__(va_dcl)
case 0: case 0:
if (vp > va) if (vp > va)
{ {
#if defined(__FreeBSD__) && !defined(__LP64__) #if defined(CSRG_BASED) && !defined(__LP64__)
ap = *--vp; ap = *--vp;
#else #else
vp--; vp--;

View file

@ -301,7 +301,7 @@ loop_fa :
GETARG(form,form,argf,args,char*,char*,'1',t_user,n_user); GETARG(form,form,argf,args,char*,char*,'1',t_user,n_user);
if(!form) if(!form)
form = ""; form = "";
#if defined(__FreeBSD__) && !defined(__LP64__) #if defined(CSRG_BASED) && !defined(__LP64__)
GETARG(argsp,argsp,argf,args,va_list*,va_list*,'2',t_user,n_user); GETARG(argsp,argsp,argf,args,va_list*,va_list*,'2',t_user,n_user);
memcpy((Void_t*)(&(fa->args)), (Void_t*)(&args), sizeof(va_list)); memcpy((Void_t*)(&(fa->args)), (Void_t*)(&args), sizeof(va_list));
memcpy((Void_t*)(&args), (Void_t*)argsp, sizeof(va_list)); memcpy((Void_t*)(&args), (Void_t*)argsp, sizeof(va_list));
@ -319,7 +319,7 @@ loop_fa :
default : /* unknown directive */ default : /* unknown directive */
if(extf) if(extf)
{ {
#if defined(__FreeBSD__) && !defined(__LP64__) #if defined(CSRG_BASED) && !defined(__LP64__)
va_list savarg = args; /* is this portable? */ va_list savarg = args; /* is this portable? */
#else #else
va_list savarg; /* is this portable? Sorry .. NO. */ va_list savarg; /* is this portable? Sorry .. NO. */
@ -332,7 +332,7 @@ loop_fa :
if((sp = astr) ) if((sp = astr) )
goto s_format; goto s_format;
#if defined(__FreeBSD__) && !defined(__LP64__) #if defined(CSRG_BASED) && !defined(__LP64__)
args = savarg; /* extf failed, treat as if unmatched */ args = savarg; /* extf failed, treat as if unmatched */
#else #else
__va_copy( args, savarg ); /* extf failed, treat as if unmatched */ __va_copy( args, savarg ); /* extf failed, treat as if unmatched */

View file

@ -212,7 +212,7 @@ char **comment_list ;/* pointer to the list of comments */
int cnt ; int cnt ;
int comflg ; int comflg ;
pid_t chld_pid = 0; pid_t chld_pid = 0;
#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__) #if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ; int chld_stat ;
#else #else
union wait chld_stat ; union wait chld_stat ;

View file

@ -86,7 +86,7 @@ static char *util_locale ;
static pid_t gtob_pid = 0; static pid_t gtob_pid = 0;
static pid_t btop_pid = 0; static pid_t btop_pid = 0;
#if defined( SVR4 ) || defined( SYSV ) || defined(__osf__) || defined(__FreeBSD__) #if defined( SVR4 ) || defined( SYSV ) || defined(__osf__) || defined(CSRG_BASED)
static int chld_stat ; static int chld_stat ;
#else #else
static union wait chld_stat ; static union wait chld_stat ;

View file

@ -102,7 +102,7 @@ char *argv[];
char *style ; /* style */ char *style ; /* style */
int chk_fd; int chk_fd;
pid_t chld_pid = 0; pid_t chld_pid = 0;
#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__) #if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ; int chld_stat ;
#else #else
union wait chld_stat ; union wait chld_stat ;

View file

@ -1047,7 +1047,7 @@ char **fontname ;
{ {
FILE *fp ; FILE *fp ;
pid_t chld_pid = 0; pid_t chld_pid = 0;
#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__) #if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ; int chld_stat ;
#else #else
union wait chld_stat ; union wait chld_stat ;

View file

@ -190,7 +190,7 @@ struct ptobhead *head;
char buf[BUFSIZE], *p; char buf[BUFSIZE], *p;
pid_t chld_pid = 0; pid_t chld_pid = 0;
#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__) #if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ; int chld_stat ;
#else #else
union wait chld_stat ; union wait chld_stat ;