Drop utsname usage for unknown architectures. It is misused and
prevent compilation on these architectures, see for instance
http://buildd.debian-ports.org/fetch.php?pkg=opencascade&arch=kfreebsd-i386&ver=6.3.0.dfsg.1-3&stamp=
1237965784&file=log&as=raw
http://buildd.debian-ports.org/fetch.php?pkg=opencascade&arch=hurd-i386&ver=6.3.0.dfsg.1-3&stamp=
1238775033&file=log&as=raw
Gbp-Pq: Name fix-osd_path.patch
#include <OSD_Path.ixx>
#include <OSD_WhoAmI.hxx>
-#ifdef HAVE_SYS_UTSNAME_H
-//# include <sys/utsname.h>
-#endif
-
static OSD_SysType whereAmI(){
#if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
return OSD_UnixBSD;
return OSD_Aix;
}
#else
- struct utsname info;
- uname(&info);
- cout << info.sysname << endl;
- cout << info.nodename << endl;
- cout << info.release << endl;
- cout << info.version << endl;
- cout << info.machine << endl;
return OSD_Default;
}
#endif