so use our own AF_FILE_BIO
int fr_bio_fd_init_connected(fr_bio_fd_t *my)
{
- if (my->info.socket.af == AF_FILE) return fr_bio_fd_init_file(my);
+ if (my->info.socket.af == AF_FILE_BIO) return fr_bio_fd_init_file(my);
/*
* Connected datagrams must have real IPs
#include <fcntl.h>
/*
- * Local hack.
+ * Local hack. AF_FILE is a synonym for AF_LOCAL on some platforms.
*/
-#define AF_FILE (INT_MAX)
+#define AF_FILE_BIO (INT_MAX)
/** Per-packet context
*
/*
* Filenames overload the #fr_socket_t for now.
*/
- my->info.socket.af = AF_FILE;
+ my->info.socket.af = AF_FILE_BIO;
my->info.socket.type = SOCK_STREAM;
my->info.socket.unix.path = cfg->filename;