aboutsummaryrefslogtreecommitdiff
path: root/include/acpi/platform/acgcc.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-05-07 00:45:27 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-05-07 00:45:27 +0200
commit23a75c52bef3ed0b688e45e352ce26069bdfd97f (patch)
treed9f0348ad9031f8552f6de067c76a6da1e24b03c /include/acpi/platform/acgcc.h
parentd48dc067450d84324067f4472dc0b169e9af4454 (diff)
parentfd0c940522c5c5b281b7a4fe3497fabf74bd8911 (diff)
Merge back earlier ACPICA material.
Diffstat (limited to 'include/acpi/platform/acgcc.h')
-rw-r--r--include/acpi/platform/acgcc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h
index a476b9118b4..384875da371 100644
--- a/include/acpi/platform/acgcc.h
+++ b/include/acpi/platform/acgcc.h
@@ -64,4 +64,15 @@
*/
#define ACPI_UNUSED_VAR __attribute__ ((unused))
+/*
+ * Some versions of gcc implement strchr() with a buggy macro. So,
+ * undef it here. Prevents error messages of this form (usually from the
+ * file getopt.c):
+ *
+ * error: logical '&&' with non-zero constant will always evaluate as true
+ */
+#ifdef strchr
+#undef strchr
+#endif
+
#endif /* __ACGCC_H__ */