sahlberg/libnfs — comment on commit 762621fa3d8e867d4f206c33898a2a97d513ff89
File:  line 0
By Memphiz:

This commit breaks build on snow leopard (mac osx 10.6.xx). Because AUTH is defined in rpc/auth.h as follows

/*
* Auth handle, interface to client side authenticators.
*/
typedef struct {
} AUTH;

So basically it is not struct AUTH but only AUTH. On linux it is defined correctly as

typedef struct AUTH AUTH;
struct AUTH {
};

And including auth.h on macosx breaks the compile on another part though (as on all places it needs to have the rpc/rpc.h include before it).

I'll do a pr with the latter. The question is - how to handle that struct AUTH. Should i define struct AUTH if not defined? Or do we change the prototype of set_auth for taking AUTH * instead of struct AUTH *? (not sure if that typedef is there on all rpc implementations though...