1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-22 14:50:36 +03:00

Fix build against old Samba by including necessary system headers

This commit is contained in:
Gleb Popov 2024-10-12 21:26:22 +03:00 committed by Semyon Knyazev
parent c062220e1d
commit 861c979329
6 changed files with 24 additions and 0 deletions

View File

@ -29,6 +29,10 @@ extern "C" {
#ifndef GP_MANAGE_H
#define GP_MANAGE_H
// time.h and unistd.h Are needed before including ndr.h when building against old samba (4.16)
#include <time.h>
#include <unistd.h>
#include <ndr.h>
#include <gen_ndr/security.h>
#include <talloc.h>

View File

@ -30,6 +30,10 @@ extern "C" {
#ifndef __SECURITY_DESCRIPTOR_H__
#define __SECURITY_DESCRIPTOR_H__
// time.h and unistd.h Are needed before including ndr.h when building against old samba (4.16)
#include <time.h>
#include <unistd.h>
#include <ndr.h>
#include <gen_ndr/security.h>

View File

@ -20,6 +20,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// time.h and unistd.h Are needed before including gen_ndr/security.h when building against old samba (4.16)
#include <time.h>
#include <unistd.h>
#include "replace.h"
#include "util/data_blob.h"
#include "gen_ndr/security.h"

View File

@ -32,6 +32,10 @@
extern "C" {
#endif
// time.h and unistd.h are needed before including gen_ndr/security.h when building against old samba (4.16)
#include <time.h>
#include <unistd.h>
#include "replace.h"
#include <talloc.h>
#include "util/data_blob.h"

View File

@ -25,6 +25,10 @@
extern "C" {
#endif
// time.h and unistd.h are needed before including ndr.h when building against old samba (4.16)
#include <time.h>
#include <unistd.h>
#include <ndr.h>
/* header auto-generated by pidl */

View File

@ -25,6 +25,10 @@
extern "C" {
#endif
// time.h and unistd.h are needed before including ndr.h when building against old samba (4.16)
#include <time.h>
#include <unistd.h>
#include <ndr.h>
#include <gen_ndr/security.h>