[LTP] [PATCH 2/3] lib/tst_kernel.c: Use <sys/personality.h>

Petr Vorel petr.vorel@gmail.com
Wed Jan 30 12:28:25 CET 2019


personality() has been defined in <sys/personality.h> since glibc 2.3
(long enough to be used).

This fixes build on Android.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 lib/tst_kernel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tst_kernel.c b/lib/tst_kernel.c
index a7fd38b4d..73ab9f1b1 100644
--- a/lib/tst_kernel.c
+++ b/lib/tst_kernel.c
@@ -15,7 +15,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <linux/personality.h>
+#include <sys/personality.h>
 #include <sys/utsname.h>
 #include "test.h"
 #include "tst_kernel.h"
-- 
2.20.1



More information about the ltp mailing list