fssd: include config.h before any glibc headers
authorUri Simchoni <urisimchoni@gmail.com>
Sun, 12 Jul 2015 06:36:46 +0000 (09:36 +0300)
committerJeremy Allison <jra@samba.org>
Thu, 16 Jul 2015 23:38:16 +0000 (01:38 +0200)
config.h may have some flags which affect glibc behavior, e.g.
_FILE_OFFSET_BITS=64. To make sure these flags have the desired
effect, config.h must be included before any glibc header files.

This commit does not fix a specific known bug. It changes the code to
comply with coding conventions.

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: "Stefan Metzmacher" <metze@samba.org>
source3/rpc_server/fss/srv_fss_state.c

index 97fd0cb833c570f6a403c56a4104eb2dd340412b..97604f3e8faa48ebd0654d5be8c7572239a1ab3f 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <fcntl.h>
 #include "source3/include/includes.h"
+#include <fcntl.h>
 #include "source3/include/util_tdb.h"
 #include "lib/dbwrap/dbwrap.h"
 #include "lib/dbwrap/dbwrap_open.h"