Index | Thread | Search

From:
Jonathan Gray <jsg@jsg.id.au>
Subject:
remove types.h include from auxv.h
To:
tech@openbsd.org
Date:
Sat, 12 Oct 2024 16:20:03 +1100

Download raw body.

Thread
  • Jonathan Gray:

    remove types.h include from auxv.h

auxv.h and the various machine/elf.h files don't
require sys/types.h

cdefs.h which was previously included from types.h is
needed for __BEGIN_DECLS/__END_DECLS

Index: sys/sys/auxv.h
===================================================================
RCS file: /cvs/src/sys/sys/auxv.h,v
diff -u -p -r1.1 auxv.h
--- sys/sys/auxv.h	14 Jul 2024 09:48:49 -0000	1.1
+++ sys/sys/auxv.h	12 Oct 2024 03:02:49 -0000
@@ -31,7 +31,7 @@
 #ifndef	_SYS_AUXV_H_
 #define	_SYS_AUXV_H_
 
-#include <sys/types.h>
+#include <sys/cdefs.h>
 #include <machine/elf.h>
 
 /* Values for a_type. */