Bug 1964 - Compilation fail on NetBSD, when --with-quotas is specified..
Compilation fail on NetBSD, when --with-quotas is specified..
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
All NetBSD
: P3 normal
: none
Assigned To: Björn Jacke
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-10-23 10:25 UTC by Andrej Misovic
Modified: 2014-11-06 12:57 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Misovic 2004-10-23 10:25:39 UTC
Compilation fail on NetBSD, when --with-quotas is specified..

..problem is, that file smbd/quotas.c don't mention about nbsd in any definition,
and compilation failed on line 932, where is condition:

#else /* !__FreeBSD__ && !AIX && !__OpenBSD__ */
#include <sys/quota.h>
#include <devnm.h>
..this is of course in linux case only..

I soluted this just only with adding this to begining of file:

#define __OpenBSD__

..and everything works fine..
it's a bit stupid solution, I think, in places, where OpenBSD is mentioned
should be NetBSD added too..
Comment 1 Björn Jacke 2014-11-06 12:57:31 UTC
I think this is not a problem anymore at least since the sysquota code was extended some years ago. Luke, can you confirm that NetBSD quotas compile find with 4.x ?