Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107728342
D10420.id27946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
555 B
Referenced Files
None
Subscribers
None
D10420.id27946.diff
View Options
Index: head/usr.bin/grep/grep.c
===================================================================
--- head/usr.bin/grep/grep.c
+++ head/usr.bin/grep/grep.c
@@ -716,8 +716,13 @@
case GREP_BASIC:
break;
case GREP_FIXED:
- /* XXX: header mess, REG_LITERAL not defined in gnu/regex.h */
- cflags |= 0020;
+#if defined(REG_NOSPEC)
+ cflags |= REG_NOSPEC;
+#elif defined(REG_LITERAL)
+ cflags |= REG_LITERAL;
+#else
+ errx(2, "literal expressions not supported at compile time");
+#endif
break;
case GREP_EXTENDED:
cflags |= REG_EXTENDED;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 8:14 PM (27 m, 1 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15889488
Default Alt Text
D10420.id27946.diff (555 B)
Attached To
Mode
D10420: bsdgrep trivial improvement: define REG_NOSPEC to be a no-op if not defined, use REG_NOSPEC instead of magic number
Attached
Detach File
Event Timeline
Log In to Comment