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:
parent
c062220e1d
commit
861c979329
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user