Sat Dec 10 00:22:39 2016 UTC ()
lang/gcc5-aux: Fix getchar functionality on NetBSD


(marino)
diff -r1.2 -r1.3 pkgsrc/lang/gcc5-aux/files/diff-ada

cvs diff -r1.2 -r1.3 pkgsrc/lang/gcc5-aux/files/diff-ada (expand / switch to unified diff)

--- pkgsrc/lang/gcc5-aux/files/diff-ada 2016/08/28 17:59:37 1.2
+++ pkgsrc/lang/gcc5-aux/files/diff-ada 2016/12/10 00:22:39 1.3
@@ -2862,52 +2862,51 @@ @@ -2862,52 +2862,51 @@
2862+#if defined(__FreeBSD__) \ 2862+#if defined(__FreeBSD__) \
2863+ || defined(__DragonFly__) \ 2863+ || defined(__DragonFly__) \
2864+ || defined(__OpenBSD__) \ 2864+ || defined(__OpenBSD__) \
2865+ || defined(__NetBSD__) 2865+ || defined(__NetBSD__)
2866 typedef unsigned int IOCTL_Req_T; 2866 typedef unsigned int IOCTL_Req_T;
2867 #else 2867 #else
2868 typedef int IOCTL_Req_T; 2868 typedef int IOCTL_Req_T;
2869--- gcc/ada/sysdep.c.orig 2869--- gcc/ada/sysdep.c.orig
2870+++ gcc/ada/sysdep.c 2870+++ gcc/ada/sysdep.c
2871@@ -287,6 +287,7 @@ 2871@@ -287,6 +287,7 @@
2872 || defined (__MACHTEN__) || defined (__hpux__) || defined (_AIX) \ 2872 || defined (__MACHTEN__) || defined (__hpux__) || defined (_AIX) \
2873 || (defined (__svr4__) && defined (i386)) || defined (__Lynx__) \ 2873 || (defined (__svr4__) && defined (i386)) || defined (__Lynx__) \
2874 || defined (__CYGWIN__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ 2874 || defined (__CYGWIN__) || defined (__FreeBSD__) || defined (__OpenBSD__) \
2875+ || defined (__DragonFly__) \ 2875+ || defined (__DragonFly__) || defined (__NetBSD__) \
2876 || defined (__GLIBC__) || defined (__APPLE__) 2876 || defined (__GLIBC__) || defined (__APPLE__)
2877  2877
2878 # ifdef __MINGW32__ 2878 # ifdef __MINGW32__
2879@@ -339,6 +340,7 @@ 2879@@ -339,6 +340,7 @@
2880 || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__hpux__) \ 2880 || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__hpux__) \
2881 || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ 2881 || defined (_AIX) || (defined (__svr4__) && defined (i386)) \
2882 || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ 2882 || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \
2883+ || defined (__DragonFly__) \ 2883+ || defined (__DragonFly__) || defined (__NetBSD__) \
2884 || defined (__GLIBC__) || defined (__APPLE__) 2884 || defined (__GLIBC__) || defined (__APPLE__)
2885 char c; 2885 char c;
2886 int nread; 2886 int nread;
2887@@ -359,6 +361,7 @@ 2887@@ -359,6 +361,7 @@
2888 || defined (__MACHTEN__) || defined (__hpux__) \ 2888 || defined (__MACHTEN__) || defined (__hpux__) \
2889 || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ 2889 || defined (_AIX) || (defined (__svr4__) && defined (i386)) \
2890 || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ 2890 || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \
2891+ || defined (__DragonFly__) \ 2891+ || defined (__DragonFly__) || defined (__NetBSD__) \
2892 || defined (__GLIBC__) || defined (__APPLE__) 2892 || defined (__GLIBC__) || defined (__APPLE__)
2893 eof_ch = termios_rec.c_cc[VEOF]; 2893 eof_ch = termios_rec.c_cc[VEOF];
2894  2894
2895@@ -820,6 +823,8 @@ 2895@@ -820,6 +823,7 @@
2896 struct tm */ 2896 struct tm */
2897  2897
2898 #elif defined (__APPLE__) || defined (__FreeBSD__) || defined (linux) \ 2898 #elif defined (__APPLE__) || defined (__FreeBSD__) || defined (linux) \
2899+ || defined (__DragonFly__) \ 2899+ || defined (__DragonFly__) || defined (__NetBSD__) \
2900+ || defined (__OpenBSD__) \ 
2901 || defined (__GLIBC__) 2900 || defined (__GLIBC__)
2902 { 2901 {
2903 localtime_r (timer, &tp); 2902 localtime_r (timer, &tp);
2904--- /dev/null 2903--- /dev/null
2905+++ gcc/ada/system-dragonfly-x86_64.ads 2904+++ gcc/ada/system-dragonfly-x86_64.ads
2906@@ -0,0 +1,144 @@ 2905@@ -0,0 +1,144 @@
2907+------------------------------------------------------------------------------ 2906+------------------------------------------------------------------------------
2908+-- -- 2907+-- --
2909+-- GNAT RUN-TIME COMPONENTS -- 2908+-- GNAT RUN-TIME COMPONENTS --
2910+-- -- 2909+-- --
2911+-- S Y S T E M -- 2910+-- S Y S T E M --
2912+-- -- 2911+-- --
2913+-- S p e c -- 2912+-- S p e c --