This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] sparc32: fix sem_open.c compilation
- From: Brett Neumeier <bneumeier at gmail dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Fri, 7 Aug 2015 18:38:52 -0500
- Subject: [PATCH] sparc32: fix sem_open.c compilation
- Authentication-results: sourceware.org; auth=none
In 2.22 and master, when doing a x86_64-pc-linux-gnu to
sparc-pc-linux-gnu cross-toolchain build, sem_open.c fails to compile
because it can't find FUTEX_SHARED. It looks to me like an include
directive got missed.
The attached fixes it for me on 2.22.
--
Brett Neumeier (bneumeier@gmail.com)
From 400f54abb2e891a144deda6e28954f3d6d5cc621 Mon Sep 17 00:00:00 2001
From: Brett Neumeier <brett@neumeier.us>
Date: Wed, 5 Aug 2015 22:12:49 -0500
Subject: [PATCH] Fix build on sparc32
---
sysdeps/sparc/sparc32/sem_open.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sysdeps/sparc/sparc32/sem_open.c b/sysdeps/sparc/sparc32/sem_open.c
index 16cb9ad..59df2d7 100644
--- a/sysdeps/sparc/sparc32/sem_open.c
+++ b/sysdeps/sparc/sparc32/sem_open.c
@@ -29,6 +29,7 @@
#include <sys/mman.h>
#include <sys/stat.h>
#include "semaphoreP.h"
+#include <futex-internal.h>
#include <shm-directory.h>
--
2.4.5