git: contrib/dhcpcd: Patch common.h to fix timespec* redefinition errors

Aaron LI aly at crater.dragonflybsd.org
Tue Dec 1 08:22:58 PST 2026


commit ee16f06c9857fc8f3364b3cc001cb83a514e4074
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Dec 1 13:20:40 2026 +0800

    contrib/dhcpcd: Patch common.h to fix timespec* redefinition errors
    
    common.h defines timespec* macros when they're not defined yet. However,
    another header (e.g., dhcpcd.h) that's included after common.h may
    include <net/if.h> to pull in <sys/time.h>, which always defines
    timespec* macros, and thus cause redefinition errors.
    
    Fix it by including <sys/time.h> in common.h.

Summary of changes:
 contrib/dhcpcd/README.DRAGONFLY | 2 +-
 contrib/dhcpcd/src/common.h     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list