"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "have_getsid.c" between
calc-2.12.7.2.tar.bz2 and calc-2.12.7.6.tar.bz2

About: Calc is a C-style arbitrary precision calculator.

have_getsid.c  (calc-2.12.7.2.tar.bz2):have_getsid.c  (calc-2.12.7.6.tar.bz2)
/* /*
* have_getsid - determine if we have getsid() * have_getsid - determine if we have getsid()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundation. * as published by the Free Software Foundation.
* *
* Calc is distributed in the hope that it will be useful, but WITHOUT * Calc is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
* Public License for more details. * Public License for more details.
* *
skipping to change at line 42 skipping to change at line 42
* compile on your system. * compile on your system.
* *
* This prog outputs several defines: * This prog outputs several defines:
* *
* HAVE_GETSID * HAVE_GETSID
* defined ==> use getsid() * defined ==> use getsid()
* undefined ==> do not call or cannot call getsid() * undefined ==> do not call or cannot call getsid()
*/ */
#include <sys/types.h> #include <sys/types.h>
#include "have_unistd.h"
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
int int
main(void) main(void)
{ {
#if defined(HAVE_NO_GETSID) #if defined(HAVE_NO_GETSID)
printf("#undef HAVE_GETSID /* no */\n"); printf("#undef HAVE_GETSID /* no */\n");
#else /* HAVE_NO_GETSID */ #else /* HAVE_NO_GETSID */
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)