mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
From 5be8656af750936fb4ce045f5288a3540e4e5f02 Mon Sep 17 00:00:00 2001
|
|
From: Augustin Cavalier <waddlesplash@gmail.com>
|
|
Date: Mon, 16 Mar 2015 17:50:12 -0400
|
|
Subject: Allow running as root on Haiku.
|
|
|
|
|
|
diff --git a/src/core/main.cpp b/src/core/main.cpp
|
|
index 1d2c657..ae6ea74 100644
|
|
--- a/src/core/main.cpp
|
|
+++ b/src/core/main.cpp
|
|
@@ -251,7 +251,7 @@ int main( int argc, char * * argv )
|
|
}
|
|
}
|
|
|
|
-#ifndef LMMS_BUILD_WIN32
|
|
+#if !defined(LMMS_BUILD_WIN32) && !defined(__HAIKU__)
|
|
if ( ( getuid() == 0 || geteuid() == 0 ) && !allowRoot )
|
|
{
|
|
printf( "LMMS cannot be run as root.\nUse \"--allowroot\" to override.\n\n" );
|
|
--
|
|
2.10.2
|
|
|
|
|
|
From 710199648563fb32b1ba3fc142ca65c2654bf816 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Sat, 4 Mar 2017 12:10:55 +0100
|
|
Subject: include unistd.h for ::read and ::write.
|
|
|
|
|
|
diff --git a/include/RemotePlugin.h b/include/RemotePlugin.h
|
|
index e3beef8..eace532 100644
|
|
--- a/include/RemotePlugin.h
|
|
+++ b/include/RemotePlugin.h
|
|
@@ -94,6 +94,7 @@ typedef int32_t key_t;
|
|
|
|
#ifndef SYNC_WITH_SHM_FIFO
|
|
#include <poll.h>
|
|
+#include <unistd.h>
|
|
#endif
|
|
|
|
#endif
|
|
--
|
|
2.10.2
|
|
|
|
|
|
From fb0a85393a728970880fbc22c19c629ab0197b36 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Sat, 4 Mar 2017 13:06:59 +0100
|
|
Subject: Link libnetwork on Haiku
|
|
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 563d240..b44e321 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -118,6 +118,10 @@ if(LMMS_HAVE_OSS AND LMMS_BUILD_OPENBSD)
|
|
SET(EXTRA_LIBRARIES "-lossaudio")
|
|
endif()
|
|
|
|
+IF(LMMS_BUILD_HAIKU)
|
|
+ SET(EXTRA_LIBRARIES "-lnetwork")
|
|
+ENDIF()
|
|
+
|
|
SET(LMMS_REQUIRED_LIBS
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
${QT_LIBRARIES}
|
|
--
|
|
2.10.2
|
|
|