sam2p.patch 621 B

1234567891011121314151617181920
  1. --- gensio.cpp.orig Thu Dec 12 19:13:08 2002
  2. +++ gensio.cpp Fri Jan 3 14:08:27 2003
  3. @@ -16,12 +16,16 @@
  4. #else
  5. #undef __STRICT_ANSI__ /* for __MINGW32__ */
  6. #define _BSD_SOURCE 1 /* vsnprintf(); may be emulated with fixup_vsnprintf() */
  7. +#ifndef __FreeBSD__
  8. #define _POSIX_SOURCE 1 /* also popen() */
  9. +#endif
  10. #define _POSIX_C_SOURCE 2 /* also popen() */
  11. #define _XOPEN_SOURCE_EXTENDED 1 /* Digital UNIX lstat */
  12. #define _XPG4_2 1 /* SunOS 5.7 lstat() */
  13. +#ifndef __FreeBSD__
  14. #undef _XOPEN_SOURCE /* pacify gcc-3.1 */
  15. #define _XOPEN_SOURCE 1 /* popen() on Digital UNIX */
  16. +#endif
  17. #endif
  18. #include "gensio.hpp"