Index: gdb/nat/linux-waitpid.h |
diff --git a/gdb/config/djgpp/langinfo.h b/gdb/nat/linux-waitpid.h |
similarity index 65% |
copy from gdb/config/djgpp/langinfo.h |
copy to gdb/nat/linux-waitpid.h |
index 9e1375f8600998d20851414b265c0b863a07ee4f..0df29d8ef5ca6321e6f430f958a96c278c7e92b7 100644 |
--- a/gdb/config/djgpp/langinfo.h |
+++ b/gdb/nat/linux-waitpid.h |
@@ -1,6 +1,6 @@ |
-/* langinfo.h file for DJGPP. |
- Copyright (C) 2009-2012 Free Software Foundation, Inc. |
- Written by Eli Zaretskii. |
+/* Wrapper for waitpid for GNU/Linux (LWP layer). |
+ |
+ Copyright (C) 2000-2013 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -17,19 +17,11 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-#ifndef _LANGINFO_H |
-#define _LANGINFO_H |
- |
-#include <nl_types.h> |
- |
-enum { |
- CODESET, |
- /* Number of enumerated values. */ |
- _NL_NUM |
-}; |
- |
-#define CODESET CODESET |
+#ifndef LINUX_WAITPID_H |
+#define LINUX_WAITPID_H |
-extern char *nl_langinfo (nl_item); |
+/* Wrapper function for waitpid which handles EINTR, and emulates |
+ __WALL for systems where that is not available. */ |
+extern int my_waitpid (int pid, int *status, int flags); |
-#endif /* _LANGINFO_H */ |
+#endif /* LINUX_WAITPID_H */ |