[nios2,committed] Add ipc_priv.h to set __IPC_64 as zero.

Message ID 296528b3-7cca-4a8e-7b60-50c58574f71e@mentor.com
State Committed
Headers

Commit Message

Chung-Lin Tang Jan. 31, 2017, 2:19 p.m. UTC
  Similar to Tile [1] and a few other archs, Nios II does not set CONFIG_ARCH_WANT_IPC_PARSE_VERSION
in the kernel. Committed patch adds the similar ipc_priv.h header to define __IPC_64 as zero.

Chung-Lin

[1] https://sourceware.org/ml/libc-alpha/2017-01/msg00258.html

2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>

        * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/nios2/ipc_priv.h b/sysdeps/unix/sysv/linux/nios2/ipc_priv.h
new file mode 100644
index 0000000..d5c6c0a
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/nios2/ipc_priv.h
@@ -0,0 +1,21 @@ 
+/* Old SysV permission definition for Linux.  Nios II version.
+   Copyright (C) 2017 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <sys/ipc.h>  /* For __key_t  */
+
+#define __IPC_64	0x0