]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: partially revert 95fc248 to make get_process_name work 22311/head
authorMykola Golub <mgolub@suse.com>
Mon, 14 May 2018 18:50:17 +0000 (21:50 +0300)
committerPrashant D <pdhange@redhat.com>
Wed, 30 May 2018 01:57:34 +0000 (21:57 -0400)
"acconfig.h" is needed for HAVE_SYS_PRCTL_H and <string.h> for memset.

Fixes: http://tracker.ceph.com/issues/24123
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit e1682de4d3e30c2c4a884ee113ca517a2e627a33)

src/common/code_environment.cc

index 7b106d585fb4c14872d0f7fdbaf42d8bb12517bf..0aab05c764603872a524bc4a8413d85f3351d168 100644 (file)
 
 #include <iostream>
 
+#include "acconfig.h"
+
 #ifdef HAVE_SYS_PRCTL_H
 #include <sys/prctl.h>
 #endif
 
+#include <string.h>
+
 code_environment_t g_code_env = CODE_ENVIRONMENT_UTILITY;
 
 extern "C" const char *code_environment_to_str(enum code_environment_t e)