From: ramsdell@mitre.org (John D. Ramsdell)
To: Grzegorz Milos <gm281@cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: [PATCH] Use stddef.h in Mini-OS to define size_t
Date: 01 May 2006 11:10:29 -0400 [thread overview]
Message-ID: <ogthd494w7u.fsf@divan.mitre.org> (raw)
In-Reply-To: <E1FaZpb-00044N-Hs@host-192-168-0-1-bcn-london>
Please patch Mini-OS so that it uses stddef.h to define size_t and
NULL. This problem fixes errors that occur when linking Mini-OS with
ANSI standard code that uses stddef.h.
John
diff -ur oxen-3.0-testing/extras/mini-os/include/lib.h nxen-3.0-testing/extras/mini-os/include/lib.h
--- oxen-3.0-testing/extras/mini-os/include/lib.h 2006-04-14 22:21:55.000000000 -0400
+++ nxen-3.0-testing/extras/mini-os/include/lib.h 2006-04-28 13:37:44.000000000 -0400
@@ -56,6 +56,7 @@
#define _LIB_H_
#include <stdarg.h>
+#include <stddef.h>
#include <console.h>
/* printing */
diff -ur oxen-3.0-testing/extras/mini-os/include/os.h nxen-3.0-testing/extras/mini-os/include/os.h
--- oxen-3.0-testing/extras/mini-os/include/os.h 2006-04-14 22:21:55.000000000 -0400
+++ nxen-3.0-testing/extras/mini-os/include/os.h 2006-04-28 13:39:13.000000000 -0400
@@ -7,9 +7,6 @@
#ifndef _OS_H_
#define _OS_H_
-#define NULL 0
-
-
#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
#define __builtin_expect(x, expected_value) (x)
#endif
diff -ur oxen-3.0-testing/extras/mini-os/include/types.h nxen-3.0-testing/extras/mini-os/include/types.h
--- oxen-3.0-testing/extras/mini-os/include/types.h 2006-04-14 22:21:55.000000000 -0400
+++ nxen-3.0-testing/extras/mini-os/include/types.h 2006-04-28 13:39:17.000000000 -0400
@@ -34,8 +34,6 @@
typedef unsigned long u64;
#endif
-typedef unsigned int size_t;
-
/* FreeBSD compat types */
typedef unsigned char u_char;
typedef unsigned int u_int;
next parent reply other threads:[~2006-05-01 15:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1FaZpb-00044N-Hs@host-192-168-0-1-bcn-london>
2006-05-01 15:10 ` John D. Ramsdell [this message]
2006-05-01 15:59 ` [PATCH] Use stddef.h in Mini-OS to define size_t Keir Fraser
2006-05-01 20:52 ` John D. Ramsdell
2006-05-02 7:51 ` Keir Fraser
2006-05-02 9:41 ` John D. Ramsdell
2006-05-02 9:45 ` Keir Fraser
2006-05-02 12:45 ` Grzegorz Milos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ogthd494w7u.fsf@divan.mitre.org \
--to=ramsdell@mitre.org \
--cc=gm281@cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.