replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.
[metze/wireshark/wip.git] / wsutil / processes.h
index 297c01c60e4738b49285d3a5d6da79f714eabc8f..03c76e829d9808f6290aa8c316450f6b789f5a45 100644 (file)
@@ -5,19 +5,7 @@
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * 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 License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #ifndef _WSUTIL_PROCESSES_H_
@@ -38,11 +26,14 @@ extern "C" {
 
 typedef HANDLE ws_process_id;
 
-#define WS_INVALID_PID    INVALID_HANDLE
+#define WS_INVALID_PID    INVALID_HANDLE_VALUE
 #else
 /*
  * On UN*X, a process ID is a pid_t.
+ * Include <sys/types.h> to make sure pid_t is defined.
  */
+#include <sys/types.h>
+
 typedef pid_t ws_process_id;
 
 #define WS_INVALID_PID    -1