diff --git a/configure.ac b/configure.ac
index 3a24053bb6a1bdc9b15b313e4a6187ea06d3fcbc..2a043ed139220b0d1dec58a0b41572d155fafa85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM],
    esac
 
    case "$host_os" in
-     linux-gnu*)
+     linux-gnu*|linux-musl*)
         # For backward compatibility, strip the `-gnu' part.
         system="$machine_name-linux";;
      *)
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 547981e5bb014f06e56370c82c265d873deb6ec6..7d124f6f0ee03f70cb561f26873bd5670a6a2b4c 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -52,7 +52,6 @@
 #include <sys/param.h>
 #include <sys/mount.h>
 #include <sys/syscall.h>
-#include <linux/fs.h>
 #define pivot_root(new_root, put_old) (syscall(SYS_pivot_root, new_root, put_old))
 #endif