google / packetdrill

The official Google release of packetdrill
GNU General Public License v2.0
897 stars 221 forks source link

fix build issue with gcc 11 #60

Closed dcaratti closed 2 years ago

dcaratti commented 2 years ago

gcc 11 complains about use of deprecated pthread_yield(): replace it with sched_yield().

Signed-off-by: Davide Caratti dcaratti@redhat.com

nealcardwell commented 2 years ago

Thanks!

For consistency I have added the prefix "net-test: packetdrill: " to the commit description's first line, and merged as:

755d5affaa870 (HEAD, packetdrill/master) net-test: packetdrill: fix build issue with gcc 11

https://github.com/google/packetdrill/commit/755d5affaa870c7f603d403cfd1238a35cd70a23

Thanks!