New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declaration specifier expected near 'ssize_t' #10
Comments
@demyanovs thanks for your report. paste your env plz. os version: e.g. #define ssize_t SSIZE_T typedef struct MMDB_s {
uint32_t flags;
const char *filename;
ssize_t file_size;
const uint8_t *file_content;
const uint8_t *data_section;
uint32_t data_section_size;
const uint8_t *metadata_section;
uint32_t metadata_section_size;
uint16_t full_record_byte_size;
uint16_t depth;
MMDB_ipv4_start_node_s ipv4_start_node;
MMDB_metadata_s metadata;
} MMDB_s; |
This error occurred when I ran lua without openresty, so the error is probably on my side. |
ok |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I include file "local geo = require 'resty.maxminddb'" I get an error:
lua entry thread aborted: runtime error: .../resty_modules/lualib/resty/maxminddb.lua:115: declaration specifier expected near 'ssize_t' at line 73
It seems that should be typedef ssize_t in case if it is not declared.
When I declare ssize_t as long or size_t, the error disappears.
My lua version: 5.1
The text was updated successfully, but these errors were encountered: