freebsd-ports/cad/klayout/files/patch-src-tlStream.cc
2016-11-22 03:00:28 +00:00

37 lines
738 B
C++

--- src/tlStream.cc.orig 2016-06-19 16:35:29 UTC
+++ src/tlStream.cc
@@ -31,6 +31,7 @@
#ifdef _WIN32
# include <io.h>
#endif
+#include <unistd.h>
#include "tlStream.h"
#include "tlHttpStream.h"
@@ -624,7 +625,7 @@ InputFile::~InputFile ()
#if defined(_WIN32)
_close (m_fd);
#else
- close (m_fd);
+ ::close (m_fd);
#endif
m_fd = -1;
}
@@ -654,7 +655,7 @@ InputFile::reset ()
#elif defined(_WIN64)
_lseek (m_fd, 0, SEEK_SET);
#else
- lseek (m_fd, 0, SEEK_SET);
+ ::lseek (m_fd, 0, SEEK_SET);
#endif
}
}
@@ -1068,7 +1069,7 @@ OutputFile::seek (size_t s)
#elif defined(_WIN32)
_lseek (m_fd, s, SEEK_SET);
#else
- lseek (m_fd, s, SEEK_SET);
+ ::lseek (m_fd, s, SEEK_SET);
#endif
}