9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.6k stars 318 forks source link

cmd/sort: Rename kcmp to Kcmp to fix FreeBSD compile error #655

Open alexkapshuk opened 1 month ago

alexkapshuk commented 1 month ago

FreeBSD 14.1 introduced the kcmp(2) system call, which is declaired in unistd.h.

This symbol colides with the kcmp function which is local to sort.c and results in a compile time error.

Rename kcmp to Kcmp to prevent symbol name collision.

Fixes #648.