Fix behaviour when pthreads/bsdsocket are used together - thanks to Fabio Alemagna...
commitd999927d093b103ed31972dab275c332d2c2c498
authorNicJA <NicJA@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 29 Apr 2017 16:22:21 +0000 (29 16:22 +0000)
committerNicJA <NicJA@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 29 Apr 2017 16:22:21 +0000 (29 16:22 +0000)
treec617302997673e677fde152bea0696695954ec1a
parent6cfd9027e90ec148406295a0cf1a8d7cdac702f2
Fix behaviour when pthreads/bsdsocket are used together - thanks to Fabio Alemagna for the help identifying the cause and formulating a fix.

# provide the pthread socket overrides in defines/pthreadsocket.h
# if bdsocket is already included and the defines are in use, include defines/pthreadsocket.h in pthreads.h
# if pthreads are already included, include defines/pthreadsocket.h in defines/bsdsocket.h

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54619 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
compiler/pthread/pthread.h
workbench/network/common/include/defines/bsdsocket.h
workbench/network/common/include/defines/pthreadsocket.h [new file with mode: 0644]