Skip to content

Commit

Permalink
libevent: Add missing include and fix wrong shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Jan 5, 2025
1 parent 4242a14 commit be2be99
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
4 changes: 1 addition & 3 deletions bootstrap.d/dev-libs.y4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -802,15 +802,13 @@ packages:
- host-pkg-config
regenerate:
- args: ['./autogen.sh']
# Fix an issue that prevents event_rpcgen.py from working.
- args: ['sed', '-i', 's/python/&3/', '@THIS_SOURCE_DIR@/event_rpcgen.py']
tools_required:
- system-gcc
pkgs_required:
- mlibc
- openssl
- zlib
revision: 9
revision: 10
configure:
- args:
- '@THIS_SOURCE_DIR@/configure'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 742d47e8a1d6c618da1a7098a6e0b4c86a42dcea Mon Sep 17 00:00:00 2001
From: Dennis Bonke <[email protected]>
Date: Sun, 5 Jan 2025 16:00:36 +0100
Subject: [PATCH] Add missing include and fix wrong shebang

Signed-off-by: Dennis Bonke <[email protected]>
---
event_rpcgen.py | 2 +-
sample/https-client.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/event_rpcgen.py b/event_rpcgen.py
index 0bae3b0..a2f7ba3 100755
--- a/event_rpcgen.py
+++ b/event_rpcgen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (c) 2005-2007 Niels Provos <[email protected]>
# Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
diff --git a/sample/https-client.c b/sample/https-client.c
index 5136ace..fc6a6ee 100644
--- a/sample/https-client.c
+++ b/sample/https-client.c
@@ -19,6 +19,7 @@
#include <assert.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <errno.h>

#ifdef _WIN32
--
2.45.2

0 comments on commit be2be99

Please sign in to comment.