Skip to content

Commit

Permalink
start: repairing instance launch on freebsd
Browse files Browse the repository at this point in the history
This patch fixes the `tt start` bug on FreeBSD:
`LuajitError: stdin:259: Undefined symbol "stdout"`
  • Loading branch information
0x501D authored and psergee committed Feb 9, 2024
1 parent 35e8be4 commit 677a47f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- `tt start`: not working on FreeBSD.

## [2.1.2] - 2024-02-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion cli/running/lua/launcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ local function start_instance()
void setlinebuf(FILE *stream);
]])

if jit.os == 'OSX' then
if jit.os == 'OSX' or jit.os == 'BSD' then
ffi.cdef([[
FILE *__stdoutp;
]])
Expand Down

0 comments on commit 677a47f

Please sign in to comment.