[core] avoid repeated typedef for fdlog_st

x-ref:
  "Lighttpd 1.4.60 make error typedef fdlog_st redefinition"
  https://redmine.lighttpd.net/boards/3/topics/10043
personal/stbuehler/tests-path
Glenn Strauss 2021-10-12 11:12:34 -04:00
parent a2bfccd1be
commit a5581b0319
1 changed files with 2 additions and 2 deletions

View File

@ -5,12 +5,12 @@
#include "base_decls.h"
#include "buffer.h"
typedef struct fdlog_st {
struct fdlog_st {
enum { FDLOG_FILE, FDLOG_FD, FDLOG_SYSLOG, FDLOG_PIPE } mode;
int fd;
buffer b;
const char *fn;
} fdlog_st;
};
__attribute_cold__
__attribute_returns_nonnull__