aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb'Roderick W. Smith <allura@localhost>2023-03-05 15:59:17 +0000
committerb'Roderick W. Smith <allura@localhost>2023-03-05 15:59:17 +0000
commit5754f6ad5c497b62f71a6aab44920fc3dedf8845 (patch)
treef2205f65ede700a67cef0602ddb83aec6edb7418
parent3c4a9fbd1d71fbd3aff0c83ec3ac9b2a0d9ba748 (diff)
parent7dfa8984f5a30f313d8675ff6097c8592d636d10 (diff)
downloadgptfdisk-5754f6ad5c497b62f71a6aab44920fc3dedf8845.tar.gz
Merge /u/khemraj/gptfdisk/ branch master into master
https://sourceforge.net/p/gptfdisk/code/merge-requests/29/
-rw-r--r--diskio-unix.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/diskio-unix.cc b/diskio-unix.cc
index 7780aeb..0897c56 100644
--- a/diskio-unix.cc
+++ b/diskio-unix.cc
@@ -37,8 +37,12 @@
using namespace std;
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__linux__)
#define off64_t off_t
+#define stat64 stat
+#define fstat64 fstat
+#define lstat64 lstat
+#define lseek64 lseek
#endif
// Returns the official "real" name for a shortened version of same.