Thread (3 messages) 3 messages, 2 authors, 2008-07-17

[PATCH] dtc: supply a definition for YYRHSLOC if there isn't one

STALE6651d

From: Paul Gortmaker <hidden>
Date: 2008-07-16 18:03:00
Subsystem: the rest · Maintainer: Linus Torvalds

It seems that some machines, like a default RHEL4 install, will
not have a definition for YYRHSLOC, and that prevents building
dtc.  This supplies what appears to be the standard definition
for it in the event that the host system does not have it defined.

Signed-off-by: Paul Gortmaker <redacted>
---
 srcpos.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/srcpos.h b/srcpos.h
index e17c7c0..fa4d001 100644
--- a/srcpos.h
+++ b/srcpos.h
@@ -39,6 +39,10 @@ typedef struct YYLTYPE {
     struct dtc_file *file;
 } YYLTYPE;
 
+#if ! defined(YYRHSLOC)
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+#endif
+
 #define YYLTYPE_IS_DECLARED	1
 #define YYLTYPE_IS_TRIVIAL	1
 #endif
-- 
1.5.6.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help