From 6c97d64735510ab8f62ebc0ccd1ed77bdbe110c7 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Fri, 6 May 2011 14:52:41 +0100 Subject: [PATCH] fix-osd_path 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 | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ros/src/OSD/OSD_Path.cxx b/ros/src/OSD/OSD_Path.cxx index 7435d8b40..cdf0af769 100644 --- a/ros/src/OSD/OSD_Path.cxx +++ b/ros/src/OSD/OSD_Path.cxx @@ -11,10 +11,6 @@ #include #include -#ifdef HAVE_SYS_UTSNAME_H -//# include -#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 -- 2.30.2