Commit 2e02f00
committed
librdmacm/preload.c: fix duplicate symbol definitions on armhf
85f9747 introduces the preload of fcntl64 and it fails to build on armhf:
Assembler messages:
Error: symbol `__fcntl_time64' is already defined
Error: symbol `sendfile64' is already defined
On armhf, glibc defines both fcntl64 and fcntl as alias to __fcntl_time64.
As a consequence, in preload.c, 2 function definitions of fcntl64 and fcntl
are preprocessed to become the same function __fcntl_time64 definition,
that cause the double symbol error.
Only define and intercept these functions if they are not already defined.
This fixes the issue both for sendfile64 and fcntl64.
Signed-off-by: Hector Cao <hector.cao@canonical.com>1 parent 1c73934 commit 2e02f00
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | | - | |
| 1188 | + | |
1189 | 1189 | | |
1190 | 1190 | | |
1191 | 1191 | | |
| |||
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
1313 | | - | |
| 1313 | + | |
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
| |||
0 commit comments