coop-deluxe / sm64coopdx

An official continuation of https://github.com/djoslin0/sm64ex-coop on sm64coopdx for the enhancements and progress it already has.
https://sm64coopdx.com
403 stars 71 forks source link

Updating mumble.c non-Windows Include (libc.h -> unistd.h) #347

Closed DizzyThermal closed 1 month ago

DizzyThermal commented 1 month ago

Changing non-Windows include from libc.h (non existent?) to unistd.h for the getuid() function dependency.

Compiling on Ubuntu and SteamOS resulted in a failed build:

src/pc/mumble/mumble.c:21:18: fatal error: libc.h: No such file or directory
   21 |         #include <libc.h>
      |                  ^~~~~~~~
compilation terminated.
make: *** [Makefile:1407: build/us_pc/src/pc/mumble/mumble.o] Error 1
make: *** Waiting for unfinished jobs....

Confirmed build is successful on Linux with unistd.h (Ubuntu and SteamOS [Arch Linux])

Isaac0-dev commented 1 month ago

this exact change is already present on the dev branch