Subject: #285 caused 'bin/mv.c' compile error (#290) Index: bin/mv.c 2.11BSD Description: When 'errno' was added to errno.h (where it had belonged for a long time) 'mv.c' ceased to compile. Repeat-By: cd /usr/src/bin make mv Observe the 'errno redeclared' error. Fix: The problem was that 'mv.c' had declared errno to be an 'unsigned' rather than an 'int'. Having the real definition in errno.h caused mv.c to not compile. Thanks to tih@Hamartun.Priv.No for spotting this one. Cut where indicated, saving to a file (/tmp/290) and then: patch -p0 < /tmp/290 cd /usr/src/bin make mv install -s -m 755 mv /bin/mv ============================cut here=================== *** /usr/src/bin/mv.c.old Sun Feb 8 14:24:50 1987 --- /usr/src/bin/mv.c Fri Jan 5 21:03:19 1996 *************** *** 4,17 **** * specifies the terms and conditions for redistribution. */ ! #ifndef lint char copyright[] = "@(#) Copyright (c) 1980 Regents of the University of California.\n\ All rights reserved.\n"; - #endif not lint ! #ifndef lint ! static char sccsid[] = "@(#)mv.c 5.3 (Berkeley) 5/15/86"; #endif not lint /* --- 4,15 ---- * specifies the terms and conditions for redistribution. */ ! #if !defined(lint) && defined(DOSCCS) char copyright[] = "@(#) Copyright (c) 1980 Regents of the University of California.\n\ All rights reserved.\n"; ! static char sccsid[] = "@(#)mv.c 5.3.1 (2.11BSD) 1996/1/5"; #endif not lint /* *************** *** 40,46 **** struct stat s1, s2; int iflag = 0; /* interactive mode */ int fflag = 0; /* force overwriting */ - extern unsigned errno; main(argc, argv) register char *argv[]; --- 38,43 ---- *** /VERSION.old Fri Jan 5 19:38:01 1996 --- /VERSION Fri Jan 5 21:32:28 1996 *************** *** 1,4 **** ! Current Patch Level: 289 2.11 BSD ============ --- 1,4 ---- ! Current Patch Level: 290 2.11 BSD ============