POST RECAP: ftp://ground.ecn.uiowa.edu/apple2/unix/nulib325.tar.Z --------------------------------------------------------------------------------- Subject: Nulib on the BeOS From: Matt Jensen Newsgroups: comp.sys.apple2 Date: Sat, 10 Jul 1999 14:46:07 -0500 Organization: Bresnan Communications Hello Apple II users, I have recently been experimenting with the Sweet16 Apple IIgs emulator on BeOS R4.5 (I do own several real IIGSes, I just like to play around with emulators once in a while.) While I was trying to convert some disk images for use with the new emulator, I found that the Nulib v2.35 source ( ftp://ground.ecn.uiowa.edu/apple2/unix/nulib325.tar.Z ) does not compile out-of-the-box on BeOS. I have prepared a very small patch to add BeOS compatibility. Here are instructions on how to compile Nulib for BeOS R4.5: 1) Download the Nulib source from ftp://ground.ecn.uiowa.edu/apple2/unix/nulib325.tar.Z . 2) Open a Terminal window and 'cd' to the directory that now contains nulib325.tar.Z. 3) At the prompt, do a 'compress -d nulib325.tar.Z'. 4) Now do a 'tar xvf nulib325.tar.Z'. A 'nulib' directory will be created with all of the source files in it. 5) 'cd' into the new 'nulib' directory. 6) Copy the file I've attached to the end of this message (EVERYTHING between the '========begin nudefs.dif========' and '========end nudefs.dif========' lines) into a new file called 'nudefs.dif'. 7) Do a 'patch ./nudefs.h ./nudefs.dif'. You should get a message similar to 'patching file './nudefs.h'. 8) Do a 'make' to compile the sources. 9) Do a './nulib' to get a short informational message from the newly-compiled Nulib. That's it! I hope any other BeOS/Sweet16/IIGS users out there find this useful. These changes have been submitted to the maintainer of Nulib as well. --Matt Jensen (type 'moc.noivbo@nesnejm' backward to get my e-mail address.) ========begin nudefs.dif======== 109a110,116 > > /* Setup for BeOS */ > #elif defined(__BEOS__) > #define UNIX > #define SYSV > #define BSD43 > #define HAS_UTIMBUF 272c279,281 < # define O_BINARY 0 /* for non-UNIX open(); easier than #ifdefs */ --- > # ifndef __BEOS__ > # define O_BINARY 0 /* for non-UNIX open(); easier than #ifdefs */ > # endif ========end nudefs.dif========