linux/compiler.h not always available
"Dr. Uwe Girlich" <[email protected]>
| Newsgroups | gmane.linux.ngpt.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello list! In the new 2.0.2 test_bench.c file there is a #include <linux/compiler.h> line. This file is not avaliable on all systems and the __builtin_expect, likely, and unlikely macros are in pth_p.h.in anyway. The attached patch removes this line. Bye, Uwe -- Dr. Uwe Girlich email: [email protected] Philosys Software GmbH www: www.philosys.de Edisonstrasse 6 phone: +49 89 321407-44 D-85716 Unterschleissheim fax: +49 89 321407-12
library-bench.diff
(text/plain, 376 B)
diff -u -r --exclude='*.o' ngpt-2.0.2-orig/test_bench.c ngpt-2.0.2-production/test_bench.c --- ngpt-2.0.2-orig/test_bench.c Wed Aug 28 17:57:34 2002 +++ ngpt-2.0.2-production/test_bench.c Thu Sep 12 07:23:21 2002 @@ -19,7 +19,6 @@ #include <time.h> #include <unistd.h> #include <sys/types.h> -#include <linux/compiler.h> #ifndef MAX_THREADS # define MAX_THREADS 100000