patch out definition of gettid now that glibc has it

This commit is contained in:
Eric Sandeen 2019-05-22 17:44:58 -05:00
parent 03ffbea6c0
commit 9a4af46fa2
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- fio-3.14/os/os-linux.h.orig 2019-05-22 17:29:16.413054806 -0500
+++ fio-3.14/os/os-linux.h 2019-05-22 17:29:20.977241736 -0500
@@ -124,11 +124,6 @@
return syscall(__NR_ioprio_set, which, who, ioprio);
}
-static inline int gettid(void)
-{
- return syscall(__NR_gettid);
-}
-
#define SPLICE_DEF_SIZE (64*1024)
#ifndef BLKGETSIZE64

View File

@ -7,6 +7,8 @@ License: GPLv2
URL: http://git.kernel.dk/?p=fio.git;a=summary
Source: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
Patch0: fio-3.14-no-redef-gettid.patch
BuildRequires: gcc
BuildRequires: libaio-devel
BuildRequires: zlib-devel
@ -35,6 +37,8 @@ one wants to simulate.
%prep
%setup -q
%patch0 -p1
%build
./configure --disable-optimizations
EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" make V=1 %{?_smp_mflags}