Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site azure.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!tektronix!teklds!azure!stevesu From: stevesu@azure.UUCP (Steve Summit) Newsgroups: net.unix-wizards Subject: 4.2 source compatibility Message-ID: <427@azure.UUCP> Date: Wed, 21-Aug-85 23:48:36 EDT Article-I.D.: azure.427 Posted: Wed Aug 21 23:48:36 1985 Date-Received: Sat, 24-Aug-85 17:43:45 EDT Distribution: net Organization: Tektronix, Beaverton OR Lines: 17 I really like to try to keep my source code generic, with the occasional machine/compiler/operating dependencies handled with #ifdef's. This is more-or-less possible in all cases I have come across except for the stupid .h files that moved under 4.2. (I refer specifically to time.h and ndir.h .) It simply isn't possible to take the same file to a 4.2 machine and a non-4.2 machine and compile it without change. I've been using -DBSD42 on the cc line, and putting it in CFLAGS in my makefiles, which keeps the .c files generic, but requires me to keep different makefiles on the different machines. A PLEA TO BERKELEY (but it's probably too late for 4.3): Please please please predefine some symbol or other in 4.2 and later cpp's. It would make life _s_o much easier... Steve Summit tektronix!bronze!stevesu