-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FreeBSD support, round 1 #7765
Changes from all commits
b7ea335
c356553
913d158
86898c4
005689f
6eacf76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,12 @@ | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifdef __FreeBSD__ | ||
#include <sys/param.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since b928dbe , But what in radius_kdcpreauth.c requires it? |
||
#endif // __FreeBSD__ | ||
#include <errno.h> | ||
#include <stdbool.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <limits.h> | ||
#include <krad.h> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <sys/types.h> | ||
#include <sys/time.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are those 2 headers required? |
||
#include <string.h> | ||
#include <errno.h> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ | |
#include <stdbool.h> | ||
|
||
#include <core/ntstatus.h> | ||
#include <unistd.h> | ||
#include <time.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? |
||
#include <ndr.h> | ||
#include <gen_ndr/security.h> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,9 @@ | |
#include <stdlib.h> | ||
#include <string.h> | ||
#include <popt.h> | ||
#ifndef __FreeBSD__ | ||
#include <sys/prctl.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is still a call to |
||
#endif // __FreeBSD__ | ||
|
||
#include "util/util.h" | ||
#include "util/child_common.h" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,9 @@ | |
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#ifdef __FreeBSD__ | ||
#include <sys/param.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? |
||
#endif // __FreeBSD__ | ||
#include <ctype.h> | ||
|
||
#include "providers/ad/ad_common.h" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ | |
#ifdef ldb_val | ||
#error Please make sure to include ad_pac.h before ldb.h | ||
#endif | ||
#include <unistd.h> | ||
#include <time.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? |
||
#include <ndr.h> | ||
#include <gen_ndr/krb5pac.h> | ||
#include <gen_ndr/ndr_krb5pac.h> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,9 @@ | |
*/ | ||
|
||
|
||
#include <sys/types.h> | ||
#include <sys/time.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? |
||
|
||
#include "providers/ad/ad_pac.h" | ||
#include "util/util.h" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ | |
#include "providers/data_provider/dp.h" | ||
#include "providers/data_provider/dp_private.h" | ||
#include "providers/backend.h" | ||
#ifdef __FreeBSD__ | ||
#include "util/sss_bsd_errno.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please include it once in |
||
#endif // __FreeBSD__ | ||
#include "util/util.h" | ||
|
||
/* There can be at most the same number of different modules loaded at | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ | |
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
#include <sys/socket.h> | ||
#include <netinet/in.h> | ||
#include <arpa/inet.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? |
||
#include <sys/un.h> | ||
#include <string.h> | ||
#include <sys/time.h> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ | |
#include "providers/ipa/ipa_deskprofile_rules_util.h" | ||
#include "providers/ipa/ipa_deskprofile_private.h" | ||
#include "providers/ipa/ipa_rules_common.h" | ||
#include <sys/types.h> | ||
#include <signal.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What for? |
||
#include <ctype.h> | ||
#include <fcntl.h> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since b928dbe ,
"util/util.h"
included below, includes<sys/param.h>
But what in confdb.c requires it?