--- zzzz-none-000/linux-4.9.218/tools/testing/selftests/ptp/testptp.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ax-750/linux-4.9.218/tools/testing/selftests/ptp/testptp.c 2023-03-29 10:59:08.000000000 +0000 @@ -48,6 +48,7 @@ #define CLOCK_INVALID -1 #endif +#if defined(__GLIBC__) && defined(__GLIBC_PREREQ) /* clock_adjtime is not available in GLIBC < 2.14 */ #if !__GLIBC_PREREQ(2, 14) #include @@ -56,6 +57,7 @@ return syscall(__NR_clock_adjtime, id, tx); } #endif +#endif static clockid_t get_clockid(int fd) {