Skip to content

Commit

Permalink
Fix CCN3296
Browse files Browse the repository at this point in the history
If we are building using the native codepage (EBCDIC) we do not need to
include this header. Otherwise `OMR_EBCDIC` will be defined and we will
be linking with the atoe library so this header will be on the include
path and we can safely include it.

```
WARNING CCN3296 /openzdk/jenkins/workspace/Build/port/unix_include/omriconvhelpers.h:38    #include file "atoe.h" not found.
```
  • Loading branch information
fjeremic committed Aug 18, 2021
1 parent a04804f commit 9309637
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions port/common/omrfilestream.c
Expand Up @@ -43,7 +43,9 @@

#if defined(J9ZOS390)
/* Needed for a translation table from ascii -> ebcdic */
#if !defined(OMR_EBCDIC)
#include "atoe.h"
#endif

/*
* a2e overrides many functions to use ASCII strings.
Expand Down
2 changes: 2 additions & 0 deletions port/common/omrfilestreamtext.c
Expand Up @@ -41,7 +41,9 @@

#if defined(J9ZOS390)
/* Needed for a translation table from ascii -> ebcdic */
#if !defined(OMR_EBCDIC)
#include "atoe.h"
#endif

/* a2e overrides many functions to use ASCII strings.
* We need the native EBCDIC string
Expand Down
2 changes: 2 additions & 0 deletions port/unix/omrfiletext.c
Expand Up @@ -51,7 +51,9 @@

/* a2e overrides nl_langinfo to return ASCII strings. We need the native EBCDIC string */
#if defined(J9ZOS390)
#if !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#if defined (nl_langinfo)
#undef nl_langinfo
#endif
Expand Down
2 changes: 2 additions & 0 deletions port/unix/omrsharedhelper.c
Expand Up @@ -36,7 +36,9 @@
#include <fcntl.h>

#if defined(J9ZOS390)
#if !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#include "spawn.h"
#include "sys/wait.h"
#endif
Expand Down
2 changes: 2 additions & 0 deletions port/unix/omrsysinfo.c
Expand Up @@ -176,7 +176,9 @@
#if defined(J9ZOS390)
#include <sys/ps.h>
#include <sys/types.h>
#if !defined(OMR_EBCDIC)
#include "atoe.h"
#endif

#if !defined(PATH_MAX)
/* This is a somewhat arbitrarily selected fixed buffer size. */
Expand Down
2 changes: 2 additions & 0 deletions port/unix_include/omriconvhelpers.h
Expand Up @@ -35,8 +35,10 @@

#if defined(J9ZOS390)
#define J9VM_CACHE_ICONV_DESC
#if !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#endif
#include <iconv.h>
#define J9VM_INVALID_ICONV_DESCRIPTOR ((iconv_t)(-1))
#define J9VM_PROVIDE_ICONV
Expand Down
2 changes: 2 additions & 0 deletions port/zos390/omrgetjobname.c
Expand Up @@ -29,7 +29,9 @@
#include <string.h>
#include "omrport.h"
#include "omrgetjobname.h"
#if defined(J9ZOS390) && !defined(OMR_EBCDIC)
#include "atoe.h"
#endif

#define J9_MAX_JOBNAME 16

Expand Down
2 changes: 2 additions & 0 deletions port/zos390/omrgetuserid.c
Expand Up @@ -27,7 +27,9 @@
*/
#include <stdlib.h>
#include <string.h>
#if defined(J9ZOS390) && !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#include "omrgetuserid.h"

#define J9_MAX_USERID 16
Expand Down
2 changes: 2 additions & 0 deletions port/zos390/omrosdump.c
Expand Up @@ -38,7 +38,9 @@
#include <pwd.h>
#include <ctest.h>
#include "omrport.h"
#if defined(J9ZOS390) && !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#include "portnls.h"

static void convertToUpper(struct OMRPortLibrary *portLibrary, char *toConvert, uintptr_t len);
Expand Down
2 changes: 2 additions & 0 deletions port/zos390/omrsysinfo_helpers.c
Expand Up @@ -29,7 +29,9 @@
#include <errno.h>
#include <sys/__wlm.h>

#if defined(J9ZOS390) && !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#include "omrport.h"
#include "omrsimap.h"
#include "omrzfs.h"
Expand Down
2 changes: 2 additions & 0 deletions port/zos390/omrsyslog.c
Expand Up @@ -26,7 +26,9 @@
* @brief System logging support
*/
#include "omrportpriv.h"
#if defined(J9ZOS390) && !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#include <string.h>
#include <sys/__messag.h>

Expand Down
2 changes: 2 additions & 0 deletions port/zos390/omrzfs.c
Expand Up @@ -30,7 +30,9 @@
#include <stdlib.h>
#include <string.h>

#if defined(J9ZOS390) && !defined(OMR_EBCDIC)
#include "atoe.h"
#endif
#include "omrport.h"
#include "omrzfs.h"
#include "omrsysinfo_helpers.h"
Expand Down

0 comments on commit 9309637

Please sign in to comment.