summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libexec/rtld-elf/sparc64/lockdflt.c2
-rw-r--r--libexec/rtld-elf/sparc64/rtld_machdep.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/libexec/rtld-elf/sparc64/lockdflt.c b/libexec/rtld-elf/sparc64/lockdflt.c
index 70dc733..c60a32f 100644
--- a/libexec/rtld-elf/sparc64/lockdflt.c
+++ b/libexec/rtld-elf/sparc64/lockdflt.c
@@ -46,8 +46,6 @@
#include <stdlib.h>
#include <time.h>
-#include <machine/atomic.h>
-
#include "debug.h"
#include "rtld.h"
#include "rtld_machdep.h"
diff --git a/libexec/rtld-elf/sparc64/rtld_machdep.h b/libexec/rtld-elf/sparc64/rtld_machdep.h
index 89c5abe..f91840f 100644
--- a/libexec/rtld-elf/sparc64/rtld_machdep.h
+++ b/libexec/rtld-elf/sparc64/rtld_machdep.h
@@ -29,6 +29,7 @@
#ifndef RTLD_MACHDEP_H
#define RTLD_MACHDEP_H 1
+#include <sys/types.h>
#include <machine/atomic.h>
#define atomic_incr_int(p) atomic_add_int((p), 1)
OpenPOWER on IntegriCloud