svn commit: r1919409 - /subversion/branches/cmake/subversion/svn_private_config.hc

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Sat Jul 20 14:58:16 2024
New Revision: 1919409

URL: http://svn.apache.org/viewvc?rev=1919409&view=rev
Log:
On the 'cmake' branch: Fix NULL device name for Unix.

On Windows, the NULL device is just a file with name 'nul' in any
directory, while on Unix, there is a file at '/dev/null' for this.
In this commit, an ifdef with the check for WIN32 will be added before
setting up the SVN_NULL_DEVICE_NAME definition to make it correct on
the current platform.

* subversion/svn_private_config.hc
  (SVN_NULL_DEVICE_NAME): Check for platform to setup the NULL device
   name correctly.

Modified:
    subversion/branches/cmake/subversion/svn_private_config.hc

Modified: subversion/branches/cmake/subversion/svn_private_config.hc
URL: http://svn.apache.org/viewvc/subversion/branches/cmake/subversion/svn_private_config.hc?rev=1919409&r1=1919408&r2=1919409&view=diff
==============================================================================
--- subversion/branches/cmake/subversion/svn_private_config.hc (original)
+++ subversion/branches/cmake/subversion/svn_private_config.hc Sat Jul 20 14:58:16 2024
@@ -46,7 +46,11 @@
 #endif
 
 /* Name of system's null device */
+#ifdef WIN32
 #define SVN_NULL_DEVICE_NAME "nul"
+#else
+#define SVN_NULL_DEVICE_NAME "/dev/null"
+#endif
 
 /* Defined to be the path to the installed binaries */
 #define SVN_BINDIR "/usr/local/bin"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.