[eresi-dev] [patch] libelfsh/libetrace compilation on beos

zadig bru zadig.bru at gmail.com
Tue Aug 19 19:44:50 UTC 2008


Here is another patch that I forgot to put last time. It removes the
procfs includes when compiling on beos.
btw where is procfs needed in these 2 libraries ? I tought it was used
only in kernsh.

Index: libelfsh/include/libelfsh.h
===================================================================
--- libelfsh/include/libelfsh.h	(revision 1094)
+++ libelfsh/include/libelfsh.h	(working copy)
@@ -44,11 +44,12 @@

 #if defined(__BEOS__)
  #include <ucontext.h>
-#elif !defined(__OpenBSD__)
+#else
+#if !defined(__OpenBSD__)
  #include <sys/ucontext.h>
 #endif

-#if !defined(sgi) && !defined(__BEOS__)
+#if !defined(sgi)
 #include <sys/user.h>
 #endif

@@ -57,6 +58,7 @@
 #elif ! (defined(__OpenBSD__))
 #include <sys/procfs.h>
 #endif
+#endif /* __BEOS__ */

 #endif

Index: libetrace/include/libetrace.h
===================================================================
--- libetrace/include/libetrace.h	(revision 1094)
+++ libetrace/include/libetrace.h	(working copy)
@@ -41,11 +41,12 @@

 #ifdef __BEOS__
  #include <ucontext.h>
-#elif !defined(__OpenBSD__)
+#else
+#if !defined(__OpenBSD__)
  #include <sys/ucontext.h>
 #endif

-#if !defined(sgi) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
&& !defined(__BEOS__)
+#if !defined(sgi) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
 #include <sys/user.h>
 #endif

@@ -54,6 +55,7 @@
 #elif !defined(__OpenBSD__)
 #include <sys/procfs.h>
 #endif
+#endif /* __BEOS__ */

 #endif /* __KERNEL__ */



More information about the eresi-dev mailing list