[Saga-devel] saga SVN commit 3322: /trunk/saga/saga/adaptors/utils/

amerzky at cct.lsu.edu amerzky at cct.lsu.edu
Sat Jan 17 09:57:35 CST 2009


User: amerzky
Date: 2009/01/17 09:57 AM

Modified:
 /trunk/saga/saga/adaptors/utils/
  utils.cpp

Log:
 ifdef uname out
 A

File Changes:

Directory: /trunk/saga/saga/adaptors/utils/
===========================================

File [modified]: utils.cpp
Delta lines: +2 -0
===================================================================
--- trunk/saga/saga/adaptors/utils/utils.cpp	2009-01-17 15:21:29 UTC (rev 3321)
+++ trunk/saga/saga/adaptors/utils/utils.cpp	2009-01-17 15:57:27 UTC (rev 3322)
@@ -191,6 +191,7 @@
         // default initial candidate
         initial_names.insert ("localhost");
 
+#ifndef SAGA_WINDOWS
         // try to get hostname from uname
         struct utsname uts;
 
@@ -198,6 +199,7 @@
         {
           initial_names.insert (uts.nodename);
         }
+#endif
 
         // try gethostname()
         char hostname[256];



More information about the saga-devel mailing list