summaryrefslogtreecommitdiff
path: root/sys-fs/autorun/files/autorun-3.17-headers.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-07 03:23:23 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-07 03:23:23 +0000
commitfc0e6a4667fb69a392aa649bf9d6261a30f53373 (patch)
tree81e0142dfcfc0a32ec945aa10dc396ab808c5030 /sys-fs/autorun/files/autorun-3.17-headers.patch
parent7842f444601c620f190db9801e59c4f11e686f15 (diff)
gentoo auto-resync : 07:02:2023 - 03:23:23
Diffstat (limited to 'sys-fs/autorun/files/autorun-3.17-headers.patch')
-rw-r--r--sys-fs/autorun/files/autorun-3.17-headers.patch44
1 files changed, 43 insertions, 1 deletions
diff --git a/sys-fs/autorun/files/autorun-3.17-headers.patch b/sys-fs/autorun/files/autorun-3.17-headers.patch
index 4fc487d656b3..113367305af0 100644
--- a/sys-fs/autorun/files/autorun-3.17-headers.patch
+++ b/sys-fs/autorun/files/autorun-3.17-headers.patch
@@ -1,5 +1,6 @@
https://bugs.gentoo.org/251684
-
+https://bugs.gentoo.org/875851
+https://bugs.gentoo.org/877125
--- a/autorun.cc
+++ b/autorun.cc
@@ -90,6 +90,8 @@ char *strchr (), *strrchr ();
@@ -11,3 +12,44 @@ https://bugs.gentoo.org/251684
#ifndef MNTTYPE_ISO9660
#define MNTTYPE_ISO9660 "iso9660"
#endif
+--- a/autorun.cc
++++ b/autorun.cc
+@@ -26,20 +26,6 @@
+ #define HAVE_ARGP
+ #endif
+
+-#if STDC_HEADERS
+-# include <string.h>
+-#else
+-# if !HAVE_STRCHR
+-# define strchr index
+-# define strrchr rindex
+-# endif
+-char *strchr (), *strrchr ();
+-# if !HAVE_MEMCPY
+-# define memcpy(d, s, n) bcopy ((s), (d), (n))
+-# define memmove(d, s, n) bcopy ((s), (d), (n))
+-# endif
+-#endif
+-
+ #include <sys/types.h>
+ #if HAVE_SYS_WAIT_H
+ # include <sys/wait.h>
+@@ -78,6 +64,8 @@ char *strchr (), *strrchr ();
+ #include <stdarg.h>
+ #include <mntent.h>
+ #include "cdrom.h"
++#include <cstring>
++#include <climits>
+ #include <list>
+ #include <iostream>
+ #include <libintl.h>
+@@ -88,7 +76,7 @@ char *strchr (), *strrchr ();
+ #include <getopt.h>
+ #endif
+
+-#include <errno.h>
++#include <cerrno>
+
+ #include <stdlib.h>
+