Changeset 1327 for trunk/lang/tcl/src


Ignore:
Timestamp:
Mar 14, 2009 5:01:41 PM (15 years ago)
Author:
gah
Message:

Add stddef include for offsetof macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/src/RpSysinfo.c

    r1257 r1327  
    1515#include <tcl.h>
    1616#include <stdlib.h>
     17#include <stddef.h>
    1718#include <string.h>
    1819#include <sys/sysinfo.h>
     
    3435
    3536static struct rpSysinfoList {
    36     char *name;  /* name of this system parameter */
    37     int type;    /* parameter type (long, unsigned long, etc.) */
    38     int offset;  /* offset into sysinfo struct */
     37    const char *name;           /* Name of this system parameter */
     38    int type;                   /* Parameter type (long, unsigned long,
     39                                 * etc.) */
     40    int offset;                 /* Offset into sysinfo struct */
    3941} RpSysinfoList [] = {
    4042    {"freeram",   RP_SLOT_ULONG,  Offset(struct sysinfo, freeram)},
Note: See TracChangeset for help on using the changeset viewer.