Skip to content

Commit eabcc49

Browse files
committed
LN_CORE: Fix implicit declaration of function 'getpid' for ios
1 parent 0527fb9 commit eabcc49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/ln_core/log.scm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737
|#
3838
;; logger
3939

40+
(c-declare #<<end-of-c-declare
41+
#include <unistd.h>
42+
end-of-c-declare
43+
)
44+
4045
;; we are logging from different threads
4146
(define log:mutex (make-mutex 'log))
4247
(define (log:grab!) (mutex-lock! log:mutex))

0 commit comments

Comments
 (0)