diff --git a/include/lapi/syscalls/gen-syscalls.py b/include/lapi/syscalls/gen-syscalls.py index 00736488d7..1218866997 100755 --- a/include/lapi/syscalls/gen-syscalls.py +++ b/include/lapi/syscalls/gen-syscalls.py @@ -48,7 +48,7 @@ #include #include #include -#include "cleanup.c" +#include "cleanup.h" #ifdef TST_TEST_H__ #define TST_SYSCALL_BRK__(NR, SNR) ({ \\ diff --git a/include/meson.build b/include/meson.build index d338aeed96..07c805c9fb 100644 --- a/include/meson.build +++ b/include/meson.build @@ -3,10 +3,6 @@ subdir('lapi') -ltp_sources += files([ - 'old/cleanup.c' -]) - compiler = meson.get_compiler('c') config_data = configuration_data() @@ -665,3 +661,8 @@ install_headers( 'tst_wallclock.h', install_dir : 'include', ) + +install_headers( + 'old/cleanup.h', + install_dir : 'include/lapi' +) diff --git a/include/old/cleanup.c b/include/old/cleanup.h similarity index 97% rename from include/old/cleanup.c rename to include/old/cleanup.h index 040dff8523..6cef5bf587 100644 --- a/include/old/cleanup.c +++ b/include/old/cleanup.h @@ -25,8 +25,8 @@ * */ -#ifndef __CLEANUP_C__ -#define __CLEANUP_C__ +#ifndef __CLEANUP_H__ +#define __CLEANUP_H__ /* Did the user define a cleanup function? */ #ifndef CLEANUP