Skip to content

Struct access in compiler.h error fix#43

Merged
RobDangerous merged 1 commit into
Kode:mainfrom
Synix4Life:main
Mar 21, 2026
Merged

Struct access in compiler.h error fix#43
RobDangerous merged 1 commit into
Kode:mainfrom
Synix4Life:main

Conversation

@Synix4Life

Copy link
Copy Markdown
Contributor

Code fix for the following error:

/usr/include/unistd.h:287:60: error: ‘int access(const char*, int)’ redeclared as different kind of entity
  287 | extern int access (const char *__name, int __type) __THROW __nonnull ((1));
      |                                                            ^~~~~~~~~
In file included from ../../sources/cfg.h:7,
                 from ../../sources/cfg.cpp:1:
../../sources/compiler.h:41:3: note: previous declaration ‘typedef struct access access’
   41 | } access;
      |   ^~~~~~
make: *** [makefile:16: cfg.o] Error 1

access() is a POSIX function. While C seems to don't care, compiling a .cpp file on the side seems to trigger something that throws this error.
Solution: renaming compiler.h::access to kong_access

@RobDangerous RobDangerous merged commit a68da7a into Kode:main Mar 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants