1#   BAREOS® - Backup Archiving REcovery Open Sourced
2#
3#   Copyright (C) 2017-2019 Bareos GmbH & Co. KG
4#
5#   This program is Free Software; you can redistribute it and/or
6#   modify it under the terms of version three of the GNU Affero General Public
7#   License as published by the Free Software Foundation and included
8#   in the file LICENSE.
9#
10#   This program is distributed in the hope that it will be useful, but
11#   WITHOUT ANY WARRANTY; without even the implied warranty of
12#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13#   Affero General Public License for more details.
14#
15#   You should have received a copy of the GNU Affero General Public License
16#   along with this program; if not, write to the Free Software
17#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18#   02110-1301, USA.
19
20INCLUDE (CheckStructHasMember)
21
22check_struct_has_member("struct stat"   st_blksize  sys/stat.h HAVE_STRUCT_STAT_ST_BLKSIZE  )
23set(HAVE_ST_BLKSIZE ${HAVE_STRUCT_STAT_ST_BLKSIZE})
24
25check_struct_has_member("struct stat"   st_blocks   sys/stat.h HAVE_STRUCT_STAT_ST_BLOCKS  )
26set(HAVE_ST_BLOCKS ${HAVE_STRUCT_STAT_ST_BLOCKS})
27
28check_struct_has_member("struct stat"   st_rdev     sys/stat.h HAVE_STRUCT_STAT_ST_RDEV  )
29set(HAVE_ST_RDEV ${HAVE_STRUCT_STAT_ST_RDEV})
30
31check_struct_has_member("struct tm"       tm_zone        time.h       HAVE_STRUCT_TM_TM_ZONE)
32set(HAVE_TM_ZONE ${HAVE_STRUCT_TM_TM_ZONE})
33