mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 14:18:53 +07:00
b4de344b25
Removed headers which are included twice. Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1566663319-4283-1-git-send-email-jrdr.linux@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
18 lines
453 B
C
18 lines
453 B
C
// SPDX-License-Identifier: LGPL-2.1
|
|
// Copyright (C) 2018, 2019 Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
|
|
//
|
|
#ifndef HAVE_GET_CURRENT_DIR_NAME
|
|
#include "get_current_dir_name.h"
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
|
|
/* Android's 'bionic' library, for one, doesn't have this */
|
|
|
|
char *get_current_dir_name(void)
|
|
{
|
|
char pwd[PATH_MAX];
|
|
|
|
return getcwd(pwd, sizeof(pwd)) == NULL ? NULL : strdup(pwd);
|
|
}
|
|
#endif // HAVE_GET_CURRENT_DIR_NAME
|