2007-05-31 18:13:28

by Jeff Dike

[permalink] [raw]
Subject: [PATCH 1/3] syslet demos - add more includes

Add a bunch of includes to sys.h and syslet.h to kill off compilation warnings.

Signed-off-by: Jeff Dike <[email protected]>
--
sys.h | 7 +++++++
syslet.h | 2 ++
2 files changed, 9 insertions(+)

Index: async-test-v5/sys.h
===================================================================
--- async-test-v5.orig/sys.h 2007-02-28 14:32:16.000000000 -0500
+++ async-test-v5/sys.h 2007-05-31 13:29:57.000000000 -0400
@@ -1,5 +1,12 @@

#include <assert.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/syscall.h>
+#include <sys/time.h>
+#include <sys/types.h>
+
+#include "syslet.h"

#if DEBUG
# define pr(x...) do { printf("%d: ", sys_gettid()); printf(x); fflush(stdout); } while (0)
Index: async-test-v5/syslet.h
===================================================================
--- async-test-v5.orig/syslet.h 2007-02-28 14:32:16.000000000 -0500
+++ async-test-v5/syslet.h 2007-05-30 12:32:44.000000000 -0400
@@ -10,6 +10,8 @@
* User-space API/ABI definitions:
*/

+#include "common.h"
+
#ifndef __user
# define __user
#endif


2007-05-31 22:09:56

by Zach Brown

[permalink] [raw]
Subject: Re: [PATCH 1/3] syslet demos - add more includes

> Add a bunch of includes to sys.h and syslet.h to kill off compilation warnings.

This, and the patches which add tests, all look great to me.

Ingo, are you patching up your tests or do you want me to take care of
these?

- z