1
0
Fork 0

Merge pull request #243 from winterheart/perl5.38-compat

Fix compilation with Perl 5.38
This commit is contained in:
rkd77 2023-07-03 13:30:42 +02:00 committed by GitHub
commit 9b3cbca0fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ extern "C" {
#define DEBUG_REFCOUNT
#endif
struct object {
struct elinks_object {
int refcount;
#ifdef CONFIG_DEBUG
char *name;
@ -20,10 +20,10 @@ struct object {
#define OBJECT_HEAD(type) \
LIST_HEAD_EL(type); \
struct object object
struct elinks_object object
struct object_head {
OBJECT_HEAD(struct object *);
OBJECT_HEAD(struct elinks_object *);
};
#ifdef DEBUG_REFCOUNT

View File

@ -1578,7 +1578,7 @@ struct uri_cache_entry {
struct uri_cache {
struct hash *map;
struct object object;
struct elinks_object object;
};
static struct uri_cache uri_cache;

View File

@ -89,7 +89,7 @@ struct uri {
unsigned int form:1; /* URI originated from form */
/* Usage count object. */
struct object object;
struct elinks_object object;
};
enum uri_errno {