1
Last-Update: 2014-04-05
4
From: Alfredo Kojima <alfredo.kengi.kojima@oracle.com>
5
Description: fix FTBFS on non-Linux architectures.
15
+ include (CheckIncludeFiles)
16
+ CHECK_INCLUDE_FILES ("sys/prctl.h" HAVE_PRCTL)
18
+ add_definitions(-DHAVE_PRCTL_H)
22
include (CheckFunctionExists)
23
check_function_exists (strtol HAVE_STRTOL)
24
check_function_exists (strtoll HAVE_STRTOLL)
25
check_function_exists (strtold HAVE_STRTOLD)
26
--- a/library/forms/gtk/src/lf_utilities.cpp
27
+++ b/library/forms/gtk/src/lf_utilities.cpp
32
#include <glib/gstdio.h>
34
#include <sys/prctl.h>
39
#include "../lf_mforms.h"
43
void UtilitiesImpl::set_thread_name(const std::string &name)
47
prctl(PR_SET_NAME, name.c_str(),0,0,0);
51
//------------------------------------------------------------------------------