jfdelnero / HxCFloppyEmulator

HxC Floppy Drive Emulator toolkit
https://hxc2001.com/floppy_drive_emulator/
87 stars 13 forks source link

Patches to compile on FreeBSD #9

Closed bsdphk closed 11 months ago

bsdphk commented 11 months ago

These changes enables me to compile HxC's software on FreeBSD.

  1. Clone the "ifeq ($(TARGET), Linux)" to ...FreeBSD and set CC/CPP appropriately
  2. Explicitly run prepare_fltk.sh with bash, this avoids a chmod in the source tree and works on FreeBSD where bash lives in /usr/local/bin
  3. Select PTHREAD_MUTEX_RECURSIVE(_NP) depending on what is defined, rather than the OS.
jfdelnero commented 11 months ago

Thanks !