]> git.pld-linux.org Git - packages/pnet.git/blob - x32.patch
- fix building on x32
[packages/pnet.git] / x32.patch
1 --- pnet-0.8.0/support/interlocked_x86.h.orig   2020-04-27 09:47:43.129859127 +0200
2 +++ pnet-0.8.0/support/interlocked_x86.h        2020-04-27 09:48:05.713191727 +0200
3 @@ -114,7 +114,7 @@
4         __asm__ __volatile__
5         (
6                 "lock;"
7 -#if defined(__x86_64__)
8 +#if defined(__x86_64__) && !defined(__ILP32__)
9                 "cmpxchgq %2, %0;"
10  #else
11                 "cmpxchgl %2, %0;"
12 @@ -137,7 +137,7 @@
13         (
14                 "1:;"
15                 "lock;"
16 -#if defined(__x86_64__)
17 +#if defined(__x86_64__) && !defined(__ILP32__)
18                 "cmpxchgq %2, %0;"
19  #else
20                 "cmpxchgl %2, %0;"
This page took 0.076119 seconds and 3 git commands to generate.