Changeset 761


Ignore:
Timestamp:
07/09/06 16:30:33 (6 years ago)
Author:
wd
Message:

Update for scons build conversion (M1: working build of base tools)

Location:
branches/ithildin-scons
Files:
2 added
2 deleted
2 edited
17 moved

Legend:

Unmodified
Added
Removed
  • branches/ithildin-scons/include/ithildin/ithildin.h

    r660 r761  
    1111#define STAND_H 
    1212 
     13#include <ithildin/config.h> 
    1314#ifdef MODULE 
    1415/* Include these if it is a module build.  modconfig.h must be supplied by 
    1516 * the module, it is intended to provide overrides to config.h */ 
    16 #include <ithildin/config.h> 
    17  
    18 /* We undefine these to prevent spurious warnings. */ 
    19 #undef PACKAGE 
    20 #undef PACKAGE_NAME 
    21 #undef PACKAGE_STRING 
    22 #undef PACKAGE_TARNAME 
    23 #undef PACKAGE_VERSION 
    24 #undef VERSION 
    25  
    26 #include "modconfig.h" 
    27 #else 
    28 /* This is the config.h generated by the GNU toolchain, used only during 
    29  * base build. */ 
    30 #include "config.h" 
     17# include "modconfig.h" 
    3118#endif 
    3219 
     
    3623 * THEM. */ 
    3724#ifdef HAVE_FEATURES_H 
    38 #define _GNU_SOURCE 
     25# define _GNU_SOURCE 
    3926#endif 
    4027 
    4128/* global config files are included here */ 
    4229#include <ctype.h> 
    43 #ifdef HAVE_ERRNO_H 
    44 # include <errno.h> 
    45 #endif 
    46 #ifdef HAVE_FCNTL_H 
    47 # include <fcntl.h> 
    48 #endif 
    49 #ifdef HAVE_LIMITS_H 
    50 # include <limits.h> 
    51 #endif 
    52 #ifdef HAVE_MATH_H 
    53 # include <math.h> 
    54 #endif 
     30#include <errno.h> 
     31#include <fcntl.h> 
     32#include <limits.h> 
     33#include <math.h> 
    5534#ifdef HAVE_MEMORY_H 
    5635# include <memory.h> 
     
    6140#include <signal.h> 
    6241#include <stdarg.h> 
    63  
    64 #ifdef HAVE_STDBOOL_H 
    65 # include <stdbool.h> 
    66 #else 
    67 # undef bool 
    68 # undef true 
    69 # undef false 
    70 # define false 0 
    71 # define true 1 
    72 # define bool _Bool 
    73 # if __STDC_VERSION__ < 199901L 
    74 typedef int _Bool; 
    75 # endif 
    76 #endif 
    77  
     42#include <stdbool.h> 
    7843#include <stddef.h> 
    7944#include <stdio.h> 
    8045#include <stdlib.h> 
    81 #ifdef HAVE_STRING_H 
    82 # include <string.h> 
    83 #endif 
     46#include <string.h> 
    8447#ifdef HAVE_STRINGS_H 
    8548# include <strings.h> 
     
    10467# include <sys/stat.h> 
    10568#endif 
    106 #if TIME_WITH_SYS_TIME 
     69#ifdef HAVE_SYS_TIME_H 
    10770# include <sys/time.h> 
     71#endif 
     72#ifdef HAVE_TIME_H 
    10873# include <time.h> 
    109 #else 
    110 # if HAVE_SYS_TIME_H 
    111 #  include <sys/time.h> 
    112 # else 
    113 #  include <time.h> 
    114 # endif 
    11574#endif 
    11675 
  • branches/ithildin-scons/lib/global.c

    r654 r761  
    1010 
    1111#include <ithildin/ithildin.h> 
     12#ifdef HAVE_OPENSSL 
     13# include <openssl/err.h> 
     14# include <openssl/rand.h> 
     15# include <openssl/ssl.h> 
     16#endif 
    1217 
    1318IDSTRING(rcsid, "$Id: main.c 652 2006-01-02 15:23:35Z wd $"); 
  • branches/ithildin-scons/source/main.c

    r660 r761  
    8383 
    8484    me.started = me.now = time(NULL); 
     85    /* 
    8586    strncpy(me.conf_path, PACKAGE_PATH_SYSCONF, PATH_MAX); 
    8687    strncpy(me.lib_path, PACKAGE_PATH_LIB "/modules", PATH_MAX); 
     
    8990    sprintf(me.version, "%s-%s", PACKAGE_NAME, PACKAGE_VERSION); 
    9091    me.revision = PACKAGE_REPOSITORY_VERSION; 
     92    */ 
    9193    me.fork = 1; /* by default we fork */ 
    9294 
     
    301303                strncpy(me.conf_path, optarg, PATH_MAX); 
    302304                break; 
     305                /* 
    303306            case 'v': 
    304307                printf("%s (r%d)\n", me.version, me.revision); 
     
    315318 
    316319                exit(0); 
     320                */ 
    317321            case '?': 
    318322                printf(usage, me.execname); 
     
    613617                    if (getegid() != grp->gr_gid) { 
    614618                        log_error("could not change effective gid to %s (%d)", 
    615                                 gr->gr_name, gr->gid); 
     619                                grp->gr_name, grp->gr_gid); 
    616620                        return false; 
    617621                    } 
Note: See TracChangeset for help on using the changeset viewer.