소스 검색

Always include config.h from c files

Also add a the usual HAVE_CONFIG_H guard around config.h inclusion
Hugo Beauzée-Luyssen 8 년 전
부모
커밋
0782456c42
20개의 변경된 파일63개의 추가작업 그리고 18개의 파일을 삭제
  1. 4 0
      compat/clock_gettime.c
  2. 3 1
      src/hmac_md5.c
  3. 3 1
      src/netbios_ns.c
  4. 4 1
      src/netbios_query.c
  5. 3 1
      src/netbios_session.c
  6. 3 1
      src/netbios_utils.c
  7. 3 1
      src/smb_buffer.c
  8. 3 1
      src/smb_dir.c
  9. 3 1
      src/smb_fd.c
  10. 3 1
      src/smb_file.c
  11. 3 1
      src/smb_message.c
  12. 3 1
      src/smb_ntlm.c
  13. 3 1
      src/smb_session.c
  14. 3 1
      src/smb_session_msg.c
  15. 3 1
      src/smb_share.c
  16. 3 1
      src/smb_spnego.c
  17. 4 0
      src/smb_stat.c
  18. 3 1
      src/smb_trans2.c
  19. 3 1
      src/smb_transport.c
  20. 3 1
      src/smb_utils.c

+ 4 - 0
compat/clock_gettime.c

@@ -27,6 +27,10 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #ifndef _WIN32
 
 #include <sys/time.h>

+ 3 - 1
src/hmac_md5.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdlib.h>

+ 3 - 1
src/netbios_ns.c

@@ -29,7 +29,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <stdio.h>

+ 4 - 1
src/netbios_query.c

@@ -28,7 +28,10 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>

+ 3 - 1
src/netbios_session.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdio.h>

+ 3 - 1
src/netbios_utils.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <string.h>
 #include <ctype.h>

+ 3 - 1
src/smb_buffer.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdlib.h>

+ 3 - 1
src/smb_dir.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdlib.h>

+ 3 - 1
src/smb_fd.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 

+ 3 - 1
src/smb_file.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdlib.h>

+ 3 - 1
src/smb_message.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>

+ 3 - 1
src/smb_ntlm.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #ifdef _WIN32
 # define _CRT_RAND_S

+ 3 - 1
src/smb_session.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "compat.h"
 

+ 3 - 1
src/smb_session_msg.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 

+ 3 - 1
src/smb_share.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdlib.h>

+ 3 - 1
src/smb_spnego.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <string.h>

+ 4 - 0
src/smb_stat.c

@@ -28,6 +28,10 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <assert.h>
 
 #include "smb_stat.h"

+ 3 - 1
src/smb_trans2.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <stdlib.h>
 #include <string.h>

+ 3 - 1
src/smb_transport.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 

+ 3 - 1
src/smb_utils.c

@@ -28,7 +28,9 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <assert.h>
 #include <iconv.h>