]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/shm.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / compat / shm.cc
index 8ca7e2402bb8f99ec231a793b0e464ab77d809e7..3a8b1ba78fe1c862c26acd3d69676bfb6481d061 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #include "squid.h"
 #include "compat/shm.h"
 
@@ -5,7 +13,6 @@
 #include <sys/sysctl.h>
 #endif
 
-
 /*
  * Some systems have filesystem-based resources and interpret segment names
  * as file paths. The so-called 'portable' "/name" format does not work well
@@ -15,7 +22,7 @@
 bool
 shm_portable_segment_name_is_path()
 {
-#if _SQUID_HPUX_ || _SQUID_OSF_ || defined(__vms) || (_SQUID_FREEBSD_ && (__FreeBSD__ < 7))
+#if _SQUID_HPUX_ || _SQUID_OSF_ || defined(__vms) || (_SQUID_FREEBSD_ && (__FreeBSD__ < 7)) || _SQUID_DRAGONFLY_
     return true;
 #elif _SQUID_FREEBSD_
     int jailed = 0;
@@ -26,3 +33,4 @@ shm_portable_segment_name_is_path()
     return false;
 #endif
 }
+