]>
Commit | Line | Data |
---|---|---|
0cfe325a JB |
1 | --- uhd-3.15.0.0/mpm/lib/i2c/CMakeLists.txt.orig 2020-01-01 05:21:49.000000000 +0100 |
2 | +++ uhd-3.15.0.0/mpm/lib/i2c/CMakeLists.txt 2020-07-10 21:45:41.727143057 +0200 | |
3 | @@ -3,6 +3,8 @@ | |
4 | # | |
5 | # SPDX-License-Identifier: GPL-3.0-or-later | |
6 | # | |
7 | +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE") | |
8 | + | |
9 | set(I2C_SOURCES | |
10 | ${CMAKE_CURRENT_SOURCE_DIR}/i2cdev_iface.cpp | |
11 | ${CMAKE_CURRENT_SOURCE_DIR}/i2c_regs_iface.cpp | |
12 | --- uhd-3.15.0.0/mpm/tools/eeprom.c.orig 2020-07-10 21:47:16.076631922 +0200 | |
13 | +++ uhd-3.15.0.0/mpm/tools/eeprom.c 2020-07-10 21:47:18.816617078 +0200 | |
14 | @@ -278,7 +278,7 @@ | |
15 | size_t len = sizeof(*ep); | |
16 | size_t got = 0; | |
17 | ||
18 | - fd = open(path, O_WRONLY | O_CREAT); | |
19 | + fd = open(path, O_WRONLY | O_CREAT, 0666); | |
20 | if (fd < 0) { | |
21 | perror("Could not open file:\n"); | |
22 | return; | |
23 | @@ -303,7 +303,7 @@ | |
24 | size_t len = sizeof(*ep); | |
25 | size_t got = 0; | |
26 | ||
27 | - fd = open(path, O_WRONLY | O_CREAT); | |
28 | + fd = open(path, O_WRONLY | O_CREAT, 0666); | |
29 | if (fd < 0) { | |
30 | perror("Could not open file:\n"); | |
31 | return; | |
32 | @@ -397,7 +397,7 @@ | |
33 | size_t len = sizeof(*ep); | |
34 | size_t i; | |
35 | ||
36 | - fd = open(path, O_WRONLY | O_CREAT); | |
37 | + fd = open(path, O_WRONLY | O_CREAT, 0666); | |
38 | if (fd < 0) { | |
39 | perror("Could not open file:\n"); | |
40 | return; |