git: sed(1): Move regex.h to be the last included

John Marino marino at crater.dragonflybsd.org
Thu Aug 6 15:15:29 PDT 2015


commit b3ebdd01f0b7c02c6fbe7b64c0d9fb6450402aa1
Author: John Marino <draco at marino.st>
Date:   Thu Aug 6 22:11:23 2015 +0200

    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.

Summary of changes:
 usr.bin/sed/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b3ebdd01f0b7c02c6fbe7b64c0d9fb6450402aa1


-- 
DragonFly BSD source repository



More information about the Commits mailing list