Skip to content

Commit

Permalink
DEVOPS-4347: make v2.3ganesha compatable with centos8.2
Browse files Browse the repository at this point in the history
Fix Description:
disable the flags and add required header files
apart from this - reverted below two commits
Note: v2.3-mapr branch is only valid for 6.1.0-EBF
for 6.2 - 3.0 ganesha is used

skipBuild unitTested review @shyam

Signed-off-by: Chakra Divi <chakragithub@gmail.com>
  • Loading branch information
chakragithub committed Nov 6, 2020
1 parent 04ef09b commit f1c0cf2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ endif(FREEBSD)
if (LINUX)
set(PLATFORM "LINUX")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format-truncation")
set(OS_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/include/os/linux")
find_library(LIBDL dl) # module loader
endif(LINUX)
Expand Down
1 change: 1 addition & 0 deletions src/FSAL/FSAL_GPFS/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <pthread.h>
#include <string.h>
#include <sys/types.h>
#include <sys/sysmacros.h>
#include <mntent.h>
#include <sys/statfs.h>
#include <sys/quota.h>
Expand Down
1 change: 1 addition & 0 deletions src/FSAL/FSAL_VFS/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <pthread.h>
#include <string.h>
#include <sys/types.h>
#include <sys/sysmacros.h>
#include "gsh_list.h"
#include "fsal.h"
#include "fsal_convert.h"
Expand Down
1 change: 1 addition & 0 deletions src/FSAL/commonlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/statvfs.h>
#include <sys/sysmacros.h>
#if __FreeBSD__
#include <sys/mount.h>
#else
Expand Down
1 change: 1 addition & 0 deletions src/FSAL/fsal_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/NodeList/nodelist_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ int nl_rangelist_add_list(nl_rangelist_t *array, char *list)
end = begin;

/* process input list */
while (end != '\0' && end < in_list + in_list_size + 1) {
while (*end != '\0' && end < in_list + in_list_size + 1) {
while (isdigit(*end))
end++;
/* do something only if end was incremented */
Expand Down

0 comments on commit f1c0cf2

Please sign in to comment.