usb-tools / USBProxy-legacy

A proxy for USB devices, libUSB and gadgetFS - this project is unmaintained, try here: https://github.com/usb-tools/Facedancer
GNU General Public License v2.0
442 stars 104 forks source link

fix gettid type on Ubuntu 20.04 #81

Closed karnauskas closed 4 years ago

karnauskas commented 4 years ago

Fix for conflicting data type

In file included from /home/mk/code/USBProxy-legacy/src/lib/RelayWriter.cpp:14:
/home/mk/code/USBProxy-legacy/src/lib/get_tid.h:12:10: error: conflicting declaration of C function ‘long int gettid()’
   12 | long int gettid();
      |          ^~~~~~
In file included from /usr/include/unistd.h:1170,
                 from /home/mk/code/USBProxy-legacy/src/lib/RelayWriter.cpp:7:
/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration ‘__pid_t gettid()’
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~
dominicgs commented 4 years ago

Thanks!