fix-osd_path
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
committerAdam C. Powell, IV <hazelsct@debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
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

ros/src/OSD/OSD_Path.cxx

index 7435d8b4027c68fe58a2a087dcee8425e17f286d..cdf0af76990587f8b5df27c86636db5819b5aa1d 100644 (file)
 #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;
@@ -44,13 +40,6 @@ static OSD_SysType whereAmI(){
   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