Changeset 2621


Ignore:
Timestamp:
2001-07-03T15:58:49+12:00 (23 years ago)
Author:
jrm21
Message:

"utsname *buf" should be "struct utsname *buf" - I think this was
failing under solaris's cc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/collectoraction.cpp

    r2566 r2621  
    3232// following line required to get fstream.filedesc() on darwin (Mac OS X)
    3333#define _STREAM_COMPAT  1
     34// required for utsname on solaris???
     35#define _XOPEN_SOURCE 1
     36#define _XOPEN_SOURCE_EXTENDED 1
    3437
    3538#include "collectoraction.h"
     
    264267  path_separator = ';';
    265268#else
    266   utsname *buf = new utsname();
     269  struct utsname *buf = new struct utsname();
    267270  int i = uname (buf);
    268271  if (i == -1) gsdlos = "linux"; // uname failed
Note: See TracChangeset for help on using the changeset viewer.