]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: use -D_GNU_SOURCE when compiling fsync-tester.c
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 3 Jan 2020 23:45:52 +0000 (15:45 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 3 Jan 2020 23:45:52 +0000 (15:45 -0800)
Otherwise loff_t is unavailable for some distributions.

Fixes: https://tracker.ceph.com/issues/43460
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/workunits/suites/fsync-tester.sh

index ea5bc0418028c6ce096031dc4399865fb2079590..6e32786ea95701c0d6e25fcbe58a381ac31ffccb 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 
 # To skirt around GPL compatibility issues:
 wget http://download.ceph.com/qa/fsync-tester.c
-gcc fsync-tester.c -o fsync-tester
+gcc -D_GNU_SOURCE fsync-tester.c -o fsync-tester
 
 ./fsync-tester