alip/pinktrace — Issue #21: fails to build on powerpc
Author: jwilk
Created: 2012-03-07 01:08:51+00:00
State: open

The library fails to build on 32-bit powerpc systems:

../../src/pink-linux-trace-powerpc.c: In function 'pink_decode_socket_fd':
../../src/pink-linux-trace-powerpc.c:232:2: error: duplicate case value
../../src/pink-linux-trace-powerpc.c:229:2: error: previously used here
make[4]: *** [pink-linux-trace-powerpc.lo] Error 1

Full build log is available at:
https://buildd.debian.org/status/fetch.php?pkg=pinktrace&arch=powerpc&ver=0.1.2-1&stamp=1330856059

Changing the `switch` satement to series of `if`s fixes the bug.