diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-11-17 16:06:06 +1100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2014-11-17 16:06:06 +1100 |
commit | b9e722768f47d9118d594fba5cf00fc1c90ee862 (patch) | |
tree | add7534c8efb3215e39b9ba59a4ddc190ce3ec97 | |
parent | ee53613ec16af1334516402a9ba99a92934fe01c (diff) | |
download | external_heimdall-b9e722768f47d9118d594fba5cf00fc1c90ee862.zip external_heimdall-b9e722768f47d9118d594fba5cf00fc1c90ee862.tar.gz external_heimdall-b9e722768f47d9118d594fba5cf00fc1c90ee862.tar.bz2 |
CMake build fixes
-rw-r--r-- | cmake/LargeFiles64.c | 2 | ||||
-rw-r--r-- | heimdall/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cmake/LargeFiles64.c b/cmake/LargeFiles64.c index 57826b7..479993d 100644 --- a/cmake/LargeFiles64.c +++ b/cmake/LargeFiles64.c @@ -10,7 +10,7 @@ int main(int argc, const char **argv)
{
int a[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? VALID_ARRAY_LENGTH : INVALID_ARRAY_LENGTH];
- off_t offset = ftello64(NULL);
+ off64_t offset = ftello64(NULL);
fseeko64(NULL, offset, SEEK_SET);
return 0;
}
diff --git a/heimdall/CMakeLists.txt b/heimdall/CMakeLists.txt index 8887211..a66a336 100644 --- a/heimdall/CMakeLists.txt +++ b/heimdall/CMakeLists.txt @@ -85,4 +85,6 @@ target_link_libraries(heimdall PRIVATE pit) LINK_DIRECTORIES(../libusb-1.0/lib/mingw) if(WIN32) target_link_libraries(heimdall PRIVATE ${CMAKE_SOURCE_DIR}/libusb-1.0/lib/mingw/libusb-1.0.a) +else(WIN32) + target_link_libraries(heimdalll PRIVATE usb-1.0) endif(WIN32) |