Re: -nostdinc, <bsd.kmod.mk>, and <std{arg,def}.h>

From: Juergen Lock <nox_at_jelal.kn-bremen.de>
Date: Sun, 25 Jul 2010 19:27:09 +0200
On Sun, Jul 25, 2010 at 12:59:00AM +0200, Juergen Lock wrote:
> On Sat, Jul 24, 2010 at 05:17:51PM -0400, Ryan Stone wrote:
> > I believe that you should be using <sys/stddef.h> and <machine/stdarg.h>
> 
> Aaah thank you! :)  I shall make a patch tomorrow.

Anyone want to test this patch on head?  It can go in
/usr/ports/emulators/kqemu-kmod-devel/files/patch-common-kqemu_int.h:

 Thanx, :)
	Juergen

--- common/kqemu_int.h.orig
+++ common/kqemu_int.h
_at__at_ -17,8 +17,14 _at__at_
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 #ifndef __ASSEMBLY__
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/stddef.h>
+#include <machine/stdarg.h>
+#else
 #include <stddef.h>
 #include <stdarg.h>
+#endif
 
 #ifndef NO_STD_TYPES
 
Received on Sun Jul 25 2010 - 15:56:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC