--- a/sc2src/log.h
+++ b/sc2src/log.h
@@ -1,15 +1,15 @@
 /* Copyright (C) 2014 J.F.Dockes
  *	 This program is free software; you can redistribute it and/or modify
- *	 it under the terms of the GNU General Public License as published by
- *	 the Free Software Foundation; either version 2 of the License, or
+ *	 it under the terms of the GNU Lesser General Public License as published by
+ *	 the Free Software Foundation; either version 2.1 of the License, or
  *	 (at your option) any later version.
  *
  *	 This program is distributed in the hope that it will be useful,
  *	 but WITHOUT ANY WARRANTY; without even the implied warranty of
  *	 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *	 GNU General Public License for more details.
- *
- *	 You should have received a copy of the GNU General Public License
+ *	 GNU Lesser General Public License for more details.
+ *
+ *	 You should have received a copy of the GNU Lesser General Public License
  *	 along with this program; if not, write to the
  *	 Free Software Foundation, Inc.,
  *	 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
@@ -193,6 +193,12 @@
 #endif
 #define LOGFATAL LOGFAT
 
+#if defined(sun) || defined(_WIN32)
+#define LOGSYSERR(who, what, arg) {                                     \
+        LOGERR(who << ": " << what << "("  << arg << "): errno " << errno << \
+               ": " << strerror(errno) << std::endl);                   \
+    }
+#else // !WINDOWS->
 #if (_POSIX_C_SOURCE >= 200112L) && !  _GNU_SOURCE
 #define LOGSYSERR(who, what, arg) {                                     \
         char buf[200]; buf[0] = 0; strerror_r(errno, buf, 200);         \
@@ -206,4 +212,6 @@
                ": " << strerror_r(errno, buf, 200) << std::endl);       \
     }
 #endif
+#endif // not windows
+
 #endif /* _LOG_H_X_INCLUDED_ */