Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2008 11:18:39 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 148909 for review
Message-ID:  <200808311118.m7VBId44023773@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=148909

Change 148909 by rpaulo@rpaulo_alpha on 2008/08/31 11:18:34

	Add definition of CTASSERT. We can't include sys/systm.h.

Affected files ...

.. //depot/projects/efi/boot/i386/efi/reloc.c#6 edit

Differences ...

==== //depot/projects/efi/boot/i386/efi/reloc.c#6 (text+ko) ====

@@ -32,6 +32,16 @@
 #include <efi.h>
 
 /*
+ * XXX: we can't include sys/systm.h.
+ */
+#ifndef CTASSERT                /* Allow lint to override */
+#define CTASSERT(x)             _CTASSERT(x, __LINE__)
+#define _CTASSERT(x, y)         __CTASSERT(x, y)
+#define __CTASSERT(x, y)        typedef char __assert ## y[(x) ? 1 : -1]
+#endif
+
+
+/*
  * A simple relocator for IA32 EFI binaries.
  */
 EFI_STATUS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808311118.m7VBId44023773>