git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1425
91ce42f0-d328-0410-95d8-
f526ca767f89
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
-// You should have received a copy of the GNU General Public
+// You should have received a copcloy of the GNU General Public
// License along with this program; if not, write to the Free
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
// MA 02111-1307, USA.
int
close(int fd)
{
- return _close(fd);
+ int rval = _close(fd);
+ if (rval == -1)
+ rval = closesocket(fd);
+ return rval;
}
#ifndef HAVE_WXCONSOLE