737cff798a
Based on the last version from Alpine, but installed to /usr/gcc6 and with pretty much everything disabled except for the C compiler. We can probably throw out a lot of patches, and make the APKBUILD much smaller. But let's focus on making it possible to compile old kernels again first. There's still a lot to do for that, see #103.
35 lines
867 B
Diff
35 lines
867 B
Diff
--- gcc-6.1.0.orig/gcc/ada/cal.c
|
|
+++ gcc-6.1.0/gcc/ada/cal.c
|
|
@@ -49,6 +49,7 @@
|
|
#include <time.h>
|
|
#else
|
|
#include <sys/time.h>
|
|
+#include <time.h>
|
|
#endif
|
|
|
|
#ifdef __MINGW32__
|
|
--- gcc-6.1.0.orig/gcc/ada/terminals.c
|
|
+++ gcc-6.1.0/gcc/ada/terminals.c
|
|
@@ -1068,13 +1068,6 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
-/* On some system termio is either absent or including it will disable termios
|
|
- (HP-UX) */
|
|
-#if !defined (__hpux__) && !defined (BSD) && !defined (__APPLE__) \
|
|
- && !defined (__rtems__)
|
|
-# include <termio.h>
|
|
-#endif
|
|
-
|
|
#include <sys/ioctl.h>
|
|
#include <termios.h>
|
|
#include <fcntl.h>
|
|
@@ -1169,7 +1162,7 @@
|
|
char *slave_name = NULL;
|
|
|
|
#ifdef USE_GETPT
|
|
- master_fd = getpt ();
|
|
+ master_fd = posix_openpt (O_RDWR);
|
|
#elif defined (USE_OPENPTY)
|
|
status = openpty (&master_fd, &slave_fd, NULL, NULL, NULL);
|
|
#elif defined (USE_CLONE_DEVICE)
|