projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix out-of-tree build
[urcu.git]
/
tests
/
api.h
diff --git
a/tests/api.h
b/tests/api.h
index 49c96f7d969eb4fa01bb35b7efc0c50266e88d79..9746ea4389cd945cec76eb75043d9732b54ed64f 100644
(file)
--- a/
tests/api.h
+++ b/
tests/api.h
@@
-1,7
+1,7
@@
-
#ifndef _INCLUDE_API_H
#define _INCLUDE_API_H
#ifndef _INCLUDE_API_H
#define _INCLUDE_API_H
+#define _GNU_SOURCE
#include "../config.h"
/*
#include "../config.h"
/*
@@
-19,7
+19,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*
@@
-27,11
+27,9
@@
* to redistribute under later versions of GPL might not be available.
*/
* to redistribute under later versions of GPL might not be available.
*/
+#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/arch.h>
-#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
-#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
-
/*
* Machine parameters.
*/
/*
* Machine parameters.
*/
@@
-56,7
+54,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*/
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*/
@@
-66,7
+64,6
@@
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
-#define __USE_GNU
#include <pthread.h>
#include <sched.h>
#include <sys/param.h>
#include <pthread.h>
#include <sched.h>
#include <sys/param.h>
This page took
0.024009 seconds
and
4
git commands to generate.