sed(1): Move regex.h to be the last included
authorJohn Marino <draco@marino.st>
Thu, 6 Aug 2015 20:11:23 +0000 (22:11 +0200)
committerJohn Marino <draco@marino.st>
Thu, 6 Aug 2015 22:05:29 +0000 (00:05 +0200)
commitb3ebdd01f0b7c02c6fbe7b64c0d9fb6450402aa1
treedb6924302c6c9014f2fc2e848716dbd639dc42fa
parent1a253afb03f4015fcbae281bb4d5f0a39c4c5947
sed(1): Move regex.h to be the last included

The regex.h will soon include <wchar.h> which pulls in <stdio.h>.  The
main.c needs _WITH_GETLINE defined before <stdio.h> is included in order
to have getline's prototype available.  When the new regex library is
imported, sed will break unless _WITH_GETLINE is defined sooner or unless
stdio.h is included before regex.h is.  Let's just move regex.h to be
the last included header to avoid our future issue.
usr.bin/sed/main.c