]>
Commit | Line | Data |
---|---|---|
de08c293 JR |
1 | diff -urNp -x '*.orig' uhd-4.1.0.1.org/mpm/lib/i2c/CMakeLists.txt uhd-4.1.0.1/mpm/lib/i2c/CMakeLists.txt |
2 | --- uhd-4.1.0.1.org/mpm/lib/i2c/CMakeLists.txt 2021-07-13 17:10:44.000000000 +0200 | |
3 | +++ uhd-4.1.0.1/mpm/lib/i2c/CMakeLists.txt 2021-08-15 16:33:43.898704758 +0200 | |
0cfe325a JB |
4 | @@ -3,6 +3,8 @@ |
5 | # | |
6 | # SPDX-License-Identifier: GPL-3.0-or-later | |
7 | # | |
8 | +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE") | |
9 | + | |
10 | set(I2C_SOURCES | |
11 | ${CMAKE_CURRENT_SOURCE_DIR}/i2cdev_iface.cpp | |
12 | ${CMAKE_CURRENT_SOURCE_DIR}/i2c_regs_iface.cpp | |
de08c293 JR |
13 | diff -urNp -x '*.orig' uhd-4.1.0.1.org/mpm/tools/eeprom.c uhd-4.1.0.1/mpm/tools/eeprom.c |
14 | --- uhd-4.1.0.1.org/mpm/tools/eeprom.c 2021-07-13 17:10:44.000000000 +0200 | |
15 | +++ uhd-4.1.0.1/mpm/tools/eeprom.c 2021-08-15 16:33:43.898704758 +0200 | |
16 | @@ -278,7 +278,7 @@ void usrp_sulfur_eeprom_to_file(struct u | |
0cfe325a JB |
17 | size_t len = sizeof(*ep); |
18 | size_t got = 0; | |
19 | ||
20 | - fd = open(path, O_WRONLY | O_CREAT); | |
21 | + fd = open(path, O_WRONLY | O_CREAT, 0666); | |
22 | if (fd < 0) { | |
23 | perror("Could not open file:\n"); | |
24 | return; | |
de08c293 | 25 | @@ -303,7 +303,7 @@ void usrp_sulfur_db_eeprom_to_file(struc |
0cfe325a JB |
26 | size_t len = sizeof(*ep); |
27 | size_t got = 0; | |
28 | ||
29 | - fd = open(path, O_WRONLY | O_CREAT); | |
30 | + fd = open(path, O_WRONLY | O_CREAT, 0666); | |
31 | if (fd < 0) { | |
32 | perror("Could not open file:\n"); | |
33 | return; | |
de08c293 | 34 | @@ -397,7 +397,7 @@ void usrp_sulfur_eeprom_to_i2c(struct us |
0cfe325a JB |
35 | size_t len = sizeof(*ep); |
36 | size_t i; | |
37 | ||
38 | - fd = open(path, O_WRONLY | O_CREAT); | |
39 | + fd = open(path, O_WRONLY | O_CREAT, 0666); | |
40 | if (fd < 0) { | |
41 | perror("Could not open file:\n"); | |
42 | return; |