Changeset 292 for trunk/src


Ignore:
Timestamp:
Sep 5, 2010, 8:57:06 PM (14 years ago)
Author:
katerina
Message:

Fix for compile problems on Solaris 10 (ticket #220).

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/make-tests.sh

    r203 r292  
    1818/* This is auto-generated code. Edit at your own peril. */
    1919
     20#include "config.h"
    2021#include <stdio.h>
    2122#include "CuTest.h"
    22 #include "config.h"
    23 
    2423'
    2524
  • trunk/src/sh_log_parse_pacct.c

    r203 r292  
    116116  BIT(ACOMPAT, 'C');
    117117#endif
     118#ifdef ACORE
    118119  BIT(ACORE, 'D');
     120#endif
     121#ifdef AXSIG
    119122  BIT(AXSIG, 'X');
     123#endif
    120124
    121125  out[i] = '\0';
  • trunk/src/sh_log_parse_samba.c

    r186 r292  
    1717#include "config_xor.h"
    1818#include <string.h>
     19
     20#if defined(HOST_IS_SOLARIS)
     21/* For 'struct timeval' in <sys/time.h> */
     22#define __EXTENSIONS__
     23#endif
     24
    1925#include <time.h>
    2026
  • trunk/src/sh_log_parse_syslog.c

    r265 r292  
    2020#include <stdlib.h>
    2121#include <string.h>
     22
     23#if defined(HOST_IS_SOLARIS)
     24/* For 'struct timeval' in <sys/time.h> */
     25#define __EXTENSIONS__
     26#endif
     27
    2228#include <sys/types.h>
    2329#include <time.h>
  • trunk/src/sh_mem.c

    r257 r292  
    112112#endif
    113113
    114 static void ** sh_mem_merr_1;
     114static memlist_t ** sh_mem_merr_1;
    115115
    116116void sh_mem_stat ()
     
    121121  SL_ENTER(_("sh_mem_stat"));
    122122
    123   sh_mem_merr_1 = (void **) &merrlist;
     123  sh_mem_merr_1 = (memlist_t **) &merrlist;
    124124
    125125  if (Alloc_Count == Free_Count)
     
    166166}
    167167
    168 static void ** sh_mem_merr_2;
     168static memlist_t ** sh_mem_merr_2;
    169169
    170170void sh_mem_check ()
     
    177177  SL_ENTER(_("sh_mem_check"));
    178178
    179   sh_mem_merr_2 = (void **) &merrlist;
     179  sh_mem_merr_2 = (memlist_t **) &merrlist;
    180180
    181181  sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_MSTAMP,
     
    317317
    318318static void ** sh_mem_dummy_a;
    319 static void ** sh_mem_merr_3;
     319static memlist_t ** sh_mem_merr_3;
    320320
    321321void sh_mem_free (void * aa, char * file, int line)
     
    333333  a      = aa;
    334334  sh_mem_dummy_a = &a;
    335   sh_mem_merr_3  = (void **) &merrlist;
     335  sh_mem_merr_3  = (memlist_t **) &merrlist;
    336336
    337337
  • trunk/src/sh_port2proc.c

    r290 r292  
    973973#else /* !defined(__linux__) && !defined(__FreeBSD__) */
    974974
     975#include "samhain.h"
     976#include "sh_utils.h"
     977
    975978char * sh_port2proc_query(int proto, struct in_addr * saddr, int sport,
    976979                          unsigned long * pid, char * user, size_t userlen)
Note: See TracChangeset for help on using the changeset viewer.