[PATCH] Dev86 patches

"Claudio Matsuoka" <[email protected]>
Newsgroups gmane.linux.ports.x8086
Message-ID <[email protected]>
Hi,

These are a few changes in the toolchain to make building old V7 code
for ELKS more comfortable and to build the toolchain with ELKS under
/usr/src/elks without getting some really strange error messages (not
that I think I'll really get somewhere building V7 code in ELKS, but
porting Bourne shell sounded interesting). Repository at
http://helllabs.org/git/dev86.git.

diff-tree 9339c8d507619a84c27c4208287832bc11b4f049 (from
e325feefc1cb066a311f2a3ea66a6a5827a18a39)
Author: Claudio Matsuoka <[email protected]>
Date:   Sat Aug 19 22:42:19 2006 -0300

    [CPP]: allow single '#' preprocessor directive

    Allow single '#' in cpp helps when compiling old UNIX V7 code.

    Signed-off-by: Claudio Matsuoka <[email protected]>

diff --git a/cpp/cpp.c b/cpp/cpp.c
index 616cf87..5024c7d 100644
--- a/cpp/cpp.c
+++ b/cpp/cpp.c
@@ -687,6 +687,9 @@ do_preproc()
 	    no_match=1;
       }
    }
+   else if (val == '\n') {
+	/* do nothing */
+   }
    else no_match=1;

    if( no_match )

diff-tree e325feefc1cb066a311f2a3ea66a6a5827a18a39 (from
4dd073ae66c9e04a84787e48f1d6ab2f92b71d11)
Author: Claudio Matsuoka <[email protected]>
Date:   Sat Aug 19 22:35:33 2006 -0300

    Run ncc with -ansi to build libc

    When ELKS headers are in place, ncc must be run with -ansi to build
    the C library otherwise a lot of strange errors will be reported

    Signed-off-by: Claudio Matsuoka <[email protected]>

diff --git a/makefile.in b/makefile.in
index 2f3832c..8ae5d35 100644
--- a/makefile.in
+++ b/makefile.in
@@ -111,7 +111,7 @@ install install-all: check_config instal

 ##############################################################################

-LIBARGS= CC=ncc "CCFLAGS=-O" AR=$(AR) ARFLAGS=$(ARFLAGS)
+LIBARGS= CC="ncc -ansi" "CCFLAGS=-O" AR=$(AR) ARFLAGS=$(ARFLAGS)
 LIB3ARGS= CC=ncc AR=$(AR) ARFLAGS=$(ARFLAGS)

 # Season in the top makefile

diff-tree 4dd073ae66c9e04a84787e48f1d6ab2f92b71d11 (from
e618e59c49d8cc0b55dcf3fe001e178642ac8275)
Author: Claudio Matsuoka <[email protected]>
Date:   Sat Aug 19 22:22:37 2006 -0300

    Add libc/include/sys/dir.h

    Signed-off-by: Claudio Matsuoka <[email protected]>

diff --git a/libc/include/sys/dir.h b/libc/include/sys/dir.h
new file mode 100644
index 0000000..7bbd490
--- /dev/null
+++ b/libc/include/sys/dir.h
@@ -0,0 +1,8 @@
+#ifndef _SYS_DIR_H
+#define _SYS_DIR_H
+
+#include <dirent.h>
+
+#define direct dirent
+
+#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.