summaryrefslogtreecommitdiff
path: root/cmds/service/service.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-12-20 17:10:16 -0800
committer Colin Cross <ccross@android.com> 2022-01-21 18:04:38 -0800
commit6d5ef677c9eb274147043a431993e7646dab4669 (patch)
treeac8522f2ee61756143a761ffff9681c955a6b4b9 /cmds/service/service.cpp
parent2aab4a792be4311a91d389316c857f2b8f576dc8 (diff)
Fix building service command with musl
Fix building the service command with musl libc by including the missing libgen.h header to provide basename. Bug: 190084016 Test: m USE_HOST_MUSL=true host-native Change-Id: I10f33966969a84aa8839a133b965d4098e20df89
Diffstat (limited to 'cmds/service/service.cpp')
-rw-r--r--cmds/service/service.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/service/service.cpp b/cmds/service/service.cpp
index fe417a362f..d5ca725eb9 100644
--- a/cmds/service/service.cpp
+++ b/cmds/service/service.cpp
@@ -21,6 +21,7 @@
#include <cutils/ashmem.h>
#include <getopt.h>
+#include <libgen.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>