]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-gettid.patch
- added gettid patch (fix build with glibc 2.30+)
[packages/rpm.git] / rpm-gettid.patch
1 --- rpm-5.4.17/rpmio/bson.c.orig        2016-05-07 17:56:27.000000000 +0200
2 +++ rpm-5.4.17/rpmio/bson.c     2020-02-05 21:07:41.212048107 +0100
3 @@ -3755,7 +3755,7 @@
4  static bson_context_t gContextDefault;
5  
6  
7 -#if defined(__linux__)
8 +#if defined(__linux__) && !defined(HAVE_GETTID)
9  static uint16_t
10  gettid (void)
11  {
12 --- rpm-5.4.17/configure.ac.orig        2020-02-05 18:18:27.663721262 +0100
13 +++ rpm-5.4.17/configure.ac     2020-02-05 21:09:41.408063616 +0100
14 @@ -1578,6 +1578,9 @@
15      time atoi atol getopt fclose fgetc fgets fopen fwrite dnl
16  ])
17  
18 +dnl # for bson
19 +AC_CHECK_FUNCS([gettid])
20 +
21  dnl # check for getmntent and alternatives
22  AC_CHECK_FUNC(getmntent, AC_DEFINE(HAVE_GETMNTENT, 1, [Define if you have the getmntent() function]), [
23    AC_CHECK_FUNC(mntctl, AC_DEFINE(HAVE_MNTCTL, 1, [Define as 1 if you have mntctl() (only aix?)]),[
This page took 0.024017 seconds and 3 git commands to generate.