From d639c7a62c8decbaa950867369fc427a6a09a604 Mon Sep 17 00:00:00 2001
From: Christopher Brannon <chris@the-brannons.com>
Date: Sun, 11 Jul 2021 06:23:05 -0700
Subject: [PATCH] svn-client egg: fixes for building on musl.

The execvp from the Musl C library doesn't fall back to /bin/sh
when it can't figure out how to execute a file.

Also we apparently need to explicitly include fcntl.h.
---
 build-svn-client  | 1 +
 svn-client-base.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/build-svn-client b/build-svn-client
index 85939b7..2a75d61 100644
--- a/build-svn-client
+++ b/build-svn-client
@@ -1,3 +1,4 @@
+#!/bin/sh
 # -*- sh -*-
 
 CFLAGS="`apr-1-config --includes` -D_LARGEFILE64_SOURCE "
diff --git a/svn-client-base.c b/svn-client-base.c
index 366badd..d6139ea 100644
--- a/svn-client-base.c
+++ b/svn-client-base.c
@@ -1,3 +1,4 @@
+#include <fcntl.h>
 #include <apr.h>
 #include <apr_hash.h>
 #include <apr_file_io.h>
-- 
2.32.0

