mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-16 09:58:07 +02:00
the usual implicit declaration of basename error also, remove empty depends= and default builddir=
13 lines
337 B
Diff
13 lines
337 B
Diff
diff --git a/rule.c b/rule.c
|
|
index c2077d20d..31f0478ca 100644
|
|
--- a/rule.c
|
|
+++ b/rule.c
|
|
@@ -24,6 +24,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
+#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name))
|
|
+
|
|
// load a rule specified on cmd line or .goomwwmrc
|
|
int rule_parse(char *rulestr)
|
|
{
|