mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
tty: Port to LibMain
This commit is contained in:
parent
cf154ec0d9
commit
1ee93e0fe7
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/1ee93e0fe7 Pull-request: https://github.com/SerenityOS/serenity/pull/13341 Issue: https://github.com/SerenityOS/serenity/issues/11609 Reviewed-by: https://github.com/kleinesfilmroellchen ✅
@ -211,6 +211,7 @@ target_link_libraries(tree LibMain)
|
||||
target_link_libraries(true LibMain)
|
||||
target_link_libraries(truncate LibMain)
|
||||
target_link_libraries(tt LibPthread LibMain)
|
||||
target_link_libraries(tty LibMain)
|
||||
target_link_libraries(umount LibMain)
|
||||
target_link_libraries(uname LibMain)
|
||||
target_link_libraries(uniq LibMain)
|
||||
|
@ -5,10 +5,11 @@
|
||||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int, char**)
|
||||
ErrorOr<int> serenity_main(Main::Arguments)
|
||||
{
|
||||
char* tty = ttyname(0);
|
||||
if (!tty) {
|
||||
|
Loading…
Reference in New Issue
Block a user